Changeset 61
- Timestamp:
- 09/25/07 19:32:12 (1 year ago)
- Files:
-
- photobooth/photobooth.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
photobooth/photobooth.py
r60 r61 73 73 d = self._tagToPerson(evt.data) 74 74 def _cachePerson(person): 75 pprint.pprint(person)75 #pprint.pprint(person) 76 76 self.people[evt.data] = person 77 77 return person … … 104 104 print "conecting to %s" % tag 105 105 if tag in self.people: 106 d = self.remote.call('picnic.relations.add', 107 dict(id=person['id'], 108 id2=self.people[tag]['id'])) 106 p = dict(id=person['id'], id2=self.people[tag]['id']) 107 pprint.pprint(p) 108 d = self.remote.call('picnic.relations.add', p) 109 d.addCallback(pprint.pprint) 109 110 110 111 d2 = self.remote.call('picnic.relations.add', 111 112 dict(id2=person['id'], 112 113 id1=self.people[tag]['id'])) 114 d2.addCallback(pprint.pprint) 113 115 return person 114 116 … … 215 217 tags = req.args.get("tags", [""])[0] 216 218 path = req.args.get("path", [""])[0] 219 title = req.args.get("title", [""])[0] 217 220 s = stream.ProducerStream() 218 221 219 d = self.controller.uploadPhoto(path, tags=tags )222 d = self.controller.uploadPhoto(path, tags=tags, title=title) 220 223 return http.Response(stream="[]") 221 224 #d.addCallback(simplejson.dumps)
