Changeset 61

Show
Ignore:
Timestamp:
09/25/07 19:32:12 (1 year ago)
Author:
devja..@anarkystic.com
Message:

title

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • photobooth/photobooth.py

    r60 r61  
    7373        d = self._tagToPerson(evt.data) 
    7474        def _cachePerson(person): 
    75             pprint.pprint(person) 
     75            #pprint.pprint(person) 
    7676            self.people[evt.data] = person 
    7777            return person 
     
    104104            print "conecting to %s" % tag 
    105105            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) 
    109110 
    110111                d2 = self.remote.call('picnic.relations.add', 
    111112                                      dict(id2=person['id'], 
    112113                                           id1=self.people[tag]['id'])) 
     114                d2.addCallback(pprint.pprint) 
    113115        return person 
    114116 
     
    215217        tags = req.args.get("tags", [""])[0] 
    216218        path = req.args.get("path", [""])[0] 
     219        title = req.args.get("title", [""])[0] 
    217220        s = stream.ProducerStream() 
    218221 
    219         d = self.controller.uploadPhoto(path, tags=tags
     222        d = self.controller.uploadPhoto(path, tags=tags, title=title
    220223        return http.Response(stream="[]") 
    221224        #d.addCallback(simplejson.dumps)