<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import atom <EOL> import gdata <EOL> REL_HOME = '<STR_LIT>' <EOL> REL_WORK = '<STR_LIT>' <EOL> REL_OTHER = '<STR_LIT>' <EOL> IM_AIM = '<STR_LIT>' <EOL> IM_MSN = '<STR_LIT>' <EOL> IM_YAHOO = '<STR_LIT>' <EOL> IM_SKYPE = '<STR_LIT>' <EOL> IM_QQ = '<STR_LIT>' <EOL> IM_GOOGLE_TALK = '<STR_LIT>' <EOL> IM_ICQ = '<STR_LIT>' <EOL> IM_JABBER = '<STR_LIT>' <EOL> PHOTO_LINK_REL = '<STR_LIT>' <EOL> PHOTO_EDIT_LINK_REL = '<STR_LIT>' <EOL> PHONE_CAR = '<STR_LIT>' <EOL> PHONE_FAX = '<STR_LIT>' <EOL> PHONE_GENERAL = '<STR_LIT>' <EOL> PHONE_HOME = REL_HOME <EOL> PHONE_HOME_FAX = '<STR_LIT>' <EOL> PHONE_INTERNAL = '<STR_LIT>' <EOL> PHONE_MOBILE = '<STR_LIT>' <EOL> PHONE_OTHER = REL_OTHER <EOL> PHONE_PAGER = '<STR_LIT>' <EOL> PHONE_SATELLITE = '<STR_LIT>' <EOL> PHONE_VOIP = '<STR_LIT>' <EOL> PHONE_WORK = REL_WORK <EOL> PHONE_WORK_FAX = '<STR_LIT>' <EOL> CONTACTS_NAMESPACE = '<STR_LIT>' <EOL> class OrgName ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> def __init__ ( self , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class OrgTitle ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> def __init__ ( self , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class Organization ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT:label>' ] = '<STR_LIT:label>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , OrgName ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , OrgTitle ) <EOL> def __init__ ( self , rel = None , primary = '<STR_LIT:false>' , org_name = None , org_title = None , <EOL> label = None , text = None , extension_elements = None , <EOL> extension_attributes = None ) : <EOL> self . rel = rel or REL_OTHER <EOL> self . primary = primary <EOL> self . org_name = org_name <EOL> self . org_title = org_title <EOL> self . label = label <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class PostalAddress ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def __init__ ( self , primary = None , rel = None , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . primary = primary <EOL> self . rel = rel or REL_OTHER <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class IM ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT:address>' ] = '<STR_LIT:address>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT:label>' ] = '<STR_LIT:label>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def __init__ ( self , primary = None , rel = None , address = None , protocol = None , <EOL> label = None , text = None , extension_elements = None , <EOL> extension_attributes = None ) : <EOL> self . protocol = protocol <EOL> self . address = address <EOL> self . primary = primary <EOL> self . rel = rel or REL_OTHER <EOL> self . label = label <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class Email ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT:email>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT:address>' ] = '<STR_LIT:address>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT:label>' ] = '<STR_LIT:label>' <EOL> def __init__ ( self , primary = None , rel = None , address = None , text = None , <EOL> label = None , extension_elements = None , extension_attributes = None ) : <EOL> self . address = address <EOL> self . primary = primary <EOL> self . rel = rel or REL_OTHER <EOL> self . label = label <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class PhoneNumber ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> _children = atom . AtomBase . _children . copy ( ) <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def __init__ ( self , primary = None , rel = None , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . primary = primary <EOL> self . rel = rel or REL_OTHER <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class Deleted ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = gdata . GDATA_NAMESPACE <EOL> def __init__ ( self , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class GroupMembershipInfo ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = CONTACTS_NAMESPACE <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def __init__ ( self , deleted = None , href = None , text = None , <EOL> extension_elements = None , extension_attributes = None ) : <EOL> self . deleted = deleted <EOL> self . href = href <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class Birthday ( atom . AtomBase ) : <EOL> _tag = '<STR_LIT>' <EOL> _namespace = CONTACTS_NAMESPACE <EOL> _attributes = atom . AtomBase . _attributes . copy ( ) <EOL> _attributes [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def __init__ ( self , when = None , text = None , extension_elements = None , <EOL> extension_attributes = None ) : <EOL> self . when = when <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> class ContactEntry ( gdata . BatchEntry ) : <EOL> """<STR_LIT>""" <EOL> _children = gdata . BatchEntry . _children . copy ( ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , <EOL> [ PostalAddress ] ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , <EOL> [ PhoneNumber ] ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , <EOL> Organization ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT:email>' , [ Email ] ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , [ IM ] ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( '<STR_LIT>' , Deleted ) <EOL> _children [ '<STR_LIT>' % CONTACTS_NAMESPACE ] = ( <EOL> '<STR_LIT>' , [ GroupMembershipInfo ] ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( <EOL> '<STR_LIT>' , [ gdata . ExtendedProperty ] ) <EOL> _children [ '<STR_LIT>' % CONTACTS_NAMESPACE ] = ( '<STR_LIT>' , Birthday ) <EOL> def __init__ ( self , author = None , category = None , content = None , <EOL> atom_id = None , link = None , published = None , <EOL> title = None , updated = None , email = None , postal_address = None , <EOL> deleted = None , organization = None , phone_number = None , im = None , <EOL> extended_property = None , group_membership_info = None , birthday = None , <EOL> batch_operation = None , batch_id = None , batch_status = None , <EOL> extension_elements = None , extension_attributes = None , text = None ) : <EOL> gdata . BatchEntry . __init__ ( self , author = author , category = category , <EOL> content = content , atom_id = atom_id , link = link , published = published , <EOL> batch_operation = batch_operation , batch_id = batch_id , <EOL> batch_status = batch_status , title = title , updated = updated ) <EOL> self . organization = organization <EOL> self . deleted = deleted <EOL> self . phone_number = phone_number or [ ] <EOL> self . postal_address = postal_address or [ ] <EOL> self . im = im or [ ] <EOL> self . extended_property = extended_property or [ ] <EOL> self . email = email or [ ] <EOL> self . group_membership_info = group_membership_info or [ ] <EOL> self . birthday = birthday <EOL> self . text = text <EOL> self . extension_elements = extension_elements or [ ] <EOL> self . extension_attributes = extension_attributes or { } <EOL> def GetPhotoLink ( self ) : <EOL> for a_link in self . link : <EOL> if a_link . rel == PHOTO_LINK_REL : <EOL> return a_link <EOL> return None <EOL> def GetPhotoEditLink ( self ) : <EOL> for a_link in self . link : <EOL> if a_link . rel == PHOTO_EDIT_LINK_REL : <EOL> return a_link <EOL> return None <EOL> def ContactEntryFromString ( xml_string ) : <EOL> return atom . CreateClassFromXMLString ( ContactEntry , xml_string ) <EOL> class ContactsFeed ( gdata . BatchFeed , gdata . LinkFinder ) : <EOL> """<STR_LIT>""" <EOL> _children = gdata . BatchFeed . _children . copy ( ) <EOL> _children [ '<STR_LIT>' % atom . ATOM_NAMESPACE ] = ( '<STR_LIT>' , [ ContactEntry ] ) <EOL> def __init__ ( self , author = None , category = None , contributor = None , <EOL> generator = None , icon = None , atom_id = None , link = None , logo = None , <EOL> rights = None , subtitle = None , title = None , updated = None , <EOL> entry = None , total_results = None , start_index = None , <EOL> items_per_page = None , extension_elements = None , <EOL> extension_attributes = None , text = None ) : <EOL> gdata . BatchFeed . __init__ ( self , author = author , category = category , <EOL> contributor = contributor , generator = generator , <EOL> icon = icon , atom_id = atom_id , link = link , <EOL> logo = logo , rights = rights , subtitle = subtitle , <EOL> title = title , updated = updated , entry = entry , <EOL> total_results = total_results , <EOL> start_index = start_index , <EOL> items_per_page = items_per_page , <EOL> extension_elements = extension_elements , <EOL> extension_attributes = extension_attributes , <EOL> text = text ) <EOL> def ContactsFeedFromString ( xml_string ) : <EOL> return atom . CreateClassFromXMLString ( ContactsFeed , xml_string ) <EOL> class GroupEntry ( gdata . BatchEntry ) : <EOL> """<STR_LIT>""" <EOL> _children = gdata . BatchEntry . _children . copy ( ) <EOL> _children [ '<STR_LIT>' % gdata . GDATA_NAMESPACE ] = ( <EOL> '<STR_LIT>' , [ gdata . ExtendedProperty ] ) <EOL> def __init__ ( self , author = None , category = None , content = None , <EOL> contributor = None , atom_id = None , link = None , published = None , rights = None , <EOL> source = None , summary = None , control = None , title = None , updated = None , <EOL> extended_property = None , batch_operation = None , batch_id = None , <EOL> batch_status = None , <EOL> extension_elements = None , extension_attributes = None , text = None ) : <EOL> gdata . BatchEntry . __init__ ( self , author = author , category = category , <EOL> content = content , <EOL> atom_id = atom_id , link = link , published = published , <EOL> batch_operation = batch_operation , batch_id = batch_id , <EOL> batch_status = batch_status , <EOL> title = title , updated = updated ) <EOL> self . extended_property = extended_property or [ ] <EOL> def GroupEntryFromString ( xml_string ) : <EOL> return atom . CreateClassFromXMLString ( GroupEntry , xml_string ) <EOL> class GroupsFeed ( gdata . BatchFeed ) : <EOL> """<STR_LIT>""" <EOL> _children = gdata . BatchFeed . _children . copy ( ) <EOL> _children [ '<STR_LIT>' % atom . ATOM_NAMESPACE ] = ( '<STR_LIT>' , [ GroupEntry ] ) <EOL> def GroupsFeedFromString ( xml_string ) : <EOL> return atom . CreateClassFromXMLString ( GroupsFeed , xml_string ) </s>
