Home | History | Annotate | Download | only in examples

Lines Matching refs:person

8 # This function fills in a Person message based on user input.
9 def PromptForAddress(person):
10 person.id = int(raw_input("Enter person ID number: "))
11 person.name = raw_input("Enter name: ")
15 person.email = email
22 phone_number = person.phone.add()
27 phone_number.type = addressbook_pb2.Person.MOBILE
29 phone_number.type = addressbook_pb2.Person.HOME
31 phone_number.type = addressbook_pb2.Person.WORK
36 # adds one person based on user input, then writes it back out to the same
53 PromptForAddress(address_book.person.add())