How to use the rwslib.builders.admindata.SimpleChildElement function in rwslib

To help you get started, we’ve selected a few rwslib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
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).
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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):
        """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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.
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""
    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.
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
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.
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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):
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
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.
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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.
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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.
    """
github mdsol / rwslib / rwslib / builders / admindata.py View on Github external
"""


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.
    """