Changeset 55
- Timestamp:
- 09/25/07 11:42:33 (1 year ago)
- Files:
-
- photobooth/photobooth.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
photobooth/photobooth.py
r52 r55 19 19 20 20 from fizzjik.remote.xmlrpc import XMLRPCService 21 from fizzjik.remote.rest import JSONService21 #from fizzjik.remote.rest import JSONService 22 22 from fizzjik.remote.flickr import UploadService 23 23 … … 26 26 from fizzjik.interfaces import IController, implements 27 27 from fizzjik.rfid import TagAddedEvent, TagPresentEvent, TagRemovedEvent 28 from fizzjik.remote import anymeta28 from fizzjik.remote.anymeta import JSONService 29 29 30 30 import pprint … … 68 68 if not self.bucket: 69 69 self.startCountdown() 70 if evt.data in self.bucket:71 return70 #if evt.data in self.bucket: 71 # return 72 72 73 73 d = self._tagToPerson(evt.data) … … 118 118 dict(uri='urn:rfid:%s'%(tag))) 119 119 def _getId(rv): 120 print "rv", rv 120 121 if not rv: 121 122 raise NotFoundException("no user found for tag %s"%(tag)) … … 127 128 128 129 def _getPersonByThing(self, thing): 129 if not thing:130 return None130 #if not thing: 131 # return None 131 132 d = self.remote.call("picnic.persons.get", 132 133 dict(id=thing)) … … 138 139 139 140 def _fillContacts(self, person): 140 if not person: 141 return None 141 print "rehere" 142 #if not person: 143 # return None 142 144 d = self.remote.call("picnic.relations.getList", 143 145 dict(id=person['id'])) … … 238 240 #xmlrpc.setServiceParent(hub) 239 241 240 json = anymeta.JSONService()242 json = JSONService() 241 243 json.setServiceParent(hub) 242 244
