def test_create_contact(self, f=None): if not f: f = self.gout c = GCContact(f) c.set_name("ScrewBall Joseph") cid = c.save() if cid: print "Successfully added contact. ID: ", cid else: print "D" "oh. Failed."
def test_create_contact(self, f=None): if not f: f = self.gout c = GCContact(f) c.set_name("ScrewBall Joseph") cid = c.save() if cid: print 'Successfully added contact. ID: ', cid else: print 'D' 'oh. Failed.'
def create_gc_contact (asynk, uinps): gc = asynk.get_db('gc') gcfid = uinps.gcfid gcf, t = gc.find_folder(gcfid) con = GCContact(gcf) con.set_name('Sri Venkata Sri Rama Subramanya Anjeneya Annapurna Sharma') con.set_prefix('Mr.') con.set_nickname('Karra') # con.set_gender('Male') con.add_phone_mob(('Mobile', '+91 90084 88997')) con.add_notes('And so it goes...') # FIXME: We should do a more exhaustive sort of contact, with multiple # entries of each type of possible entry and so on... return con.save()