Changeset 59

Show
Ignore:
Timestamp:
09/25/07 18:13:45 (1 year ago)
Author:
devja..@anarkystic.com
Message:

make contacts

Files:

Legend:

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

    r58 r59  
    9898 
    9999    def makeContacts(self, person): 
    100         pass 
     100        for tag in self.bucket: 
     101            if tag == person['rfid']: 
     102                print "skip" 
     103                continue 
     104            print "conecting to %s" % tag 
     105            if tag in self.people: 
     106                self.remote.call('picnic.relations.add', 
     107                                 dict(id=person['id'], 
     108                                      id2=self.people[tag]['id'])) 
     109        return person 
    101110 
    102111