def getCurrentUser(): contact = contact_pb2.Contact() contact.first_name = "Vincent" contact.last_name = "Ngo" contact.twitter_name = "@vincentngo2" contact.email = "*****@*****.**" contact.github_link = "github.com/vincentngo" contact.type = contact_pb2.Contact.ATTENDANT contact.imageName = "vincentngo.png" str = contact.SerializeToString() return str
def getCurrentUser(): contact = contact_pb2.Contact() contact.first_name = "Istiak" contact.last_name = "Morsalin" contact.twitter_name = "@morsalinIstiak" contact.email = "*****@*****.**" contact.github_link = "github.com/IstiakMorsalin" contact.type = contact_pb2.Contact.ATTENDANT contact.imageName = "istiak.jpg" str = contact.SerializeToString() return str
def getSpeakers(): contacts = [] for contactDict in RWDict.speakers: contact = contact_pb2.Contact() contact.first_name = contactDict['first_name'] contact.last_name = contactDict['last_name'] contact.twitter_name = contactDict['twitter_name'] contact.email = contactDict['email'] contact.github_link = contactDict['github_link'] contact.type = stringToContactType(contactDict['type']) contact.imageName = contactDict['imageName'] contacts.append(contact) speakers = contact_pb2.Speakers() speakers.contacts.extend(contacts) return speakers.SerializeToString()