Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
builder.end(self.__class__.__name__)
class LoginName(SimpleChildElement):
"""
The user's login identification.
"""
class DisplayName(SimpleChildElement):
"""
A short displayable name for the user.
"""
class FullName(SimpleChildElement):
"""
The user's full formal name.
"""
class FirstName(SimpleChildElement):
"""
The user's initial given name or all given names.
"""
class LastName(SimpleChildElement):
"""
The user's surname (family name).
"""
"""
class StreetName(SimpleChildElement):
"""
The street address part of a user's postal address.
"""
class City(SimpleChildElement):
"""
The city name part of a user's postal address.
"""
class StateProv(SimpleChildElement):
"""
The state or province name part of a user's postal address.
"""
class Country(ODMElement):
"""
The country name part of a user's postal address. This must be represented by an ISO 3166 two-letter country code.
"""
def __init__(self, country_code):
super(Country, self).__init__()
# TODO: Validate this
self.country_code = country_code
def build(self, builder):
"""
"""
class LastName(SimpleChildElement):
"""
The user's surname (family name).
"""
class Organization(SimpleChildElement):
"""
The user's organization.
"""
class Email(SimpleChildElement):
"""
The user's email address.
"""
class Phone(SimpleChildElement):
"""
The user's voice phone number.
"""
class StreetName(SimpleChildElement):
"""
The street address part of a user's postal address.
"""
"""
def __init__(self, text):
self.text = text
def build(self, builder):
"""
Build the element
:param builder:
:return:
"""
builder.start(self.__class__.__name__)
builder.data(self.text)
builder.end(self.__class__.__name__)
class LoginName(SimpleChildElement):
"""
The user's login identification.
"""
class DisplayName(SimpleChildElement):
"""
A short displayable name for the user.
"""
class FullName(SimpleChildElement):
"""
The user's full formal name.
"""
super(Country, self).__init__()
# TODO: Validate this
self.country_code = country_code
def build(self, builder):
"""
Build this element
:param builder:
:return:
"""
builder.start(self.__class__.__name__)
builder.data(self.country_code)
builder.end(self.__class__.__name__)
class PostalCode(SimpleChildElement):
"""
The postal code part of a user's postal address.
"""
class OtherText(SimpleChildElement):
"""
Any other text needed as part of a user's postal address.
"""
class Phone(SimpleChildElement):
"""
The user's voice phone number.
"""
class StreetName(SimpleChildElement):
"""
The street address part of a user's postal address.
"""
class City(SimpleChildElement):
"""
The city name part of a user's postal address.
"""
class StateProv(SimpleChildElement):
"""
The state or province name part of a user's postal address.
"""
class Country(ODMElement):
"""
The country name part of a user's postal address. This must be represented by an ISO 3166 two-letter country code.
"""
def __init__(self, country_code):
Build the element
:param builder:
:return:
"""
builder.start(self.__class__.__name__)
builder.data(self.text)
builder.end(self.__class__.__name__)
class LoginName(SimpleChildElement):
"""
The user's login identification.
"""
class DisplayName(SimpleChildElement):
"""
A short displayable name for the user.
"""
class FullName(SimpleChildElement):
"""
The user's full formal name.
"""
class FirstName(SimpleChildElement):
"""
The user's initial given name or all given names.
"""
"""
class FirstName(SimpleChildElement):
"""
The user's initial given name or all given names.
"""
class LastName(SimpleChildElement):
"""
The user's surname (family name).
"""
class Organization(SimpleChildElement):
"""
The user's organization.
"""
class Email(SimpleChildElement):
"""
The user's email address.
"""
class Phone(SimpleChildElement):
"""
The user's voice phone number.
"""
"""
class Email(SimpleChildElement):
"""
The user's email address.
"""
class Phone(SimpleChildElement):
"""
The user's voice phone number.
"""
class StreetName(SimpleChildElement):
"""
The street address part of a user's postal address.
"""
class City(SimpleChildElement):
"""
The city name part of a user's postal address.
"""
class StateProv(SimpleChildElement):
"""
The state or province name part of a user's postal address.
"""
"""
class DisplayName(SimpleChildElement):
"""
A short displayable name for the user.
"""
class FullName(SimpleChildElement):
"""
The user's full formal name.
"""
class FirstName(SimpleChildElement):
"""
The user's initial given name or all given names.
"""
class LastName(SimpleChildElement):
"""
The user's surname (family name).
"""
class Organization(SimpleChildElement):
"""
The user's organization.
"""