Ejemplo n.º 1
0
    def parse(self, value):
        if (value == None):
            return None
        instance = User()
        __DirBaseValueSerDer__().parseInternal(value, instance)

        self.parseInternal(value, instance)
        return instance
Ejemplo n.º 2
0
    def encodeInternal(self, value, instance):
        __DirBaseValueSerDer__().encodeInternal(value, instance)

        nameValue = value.name
        instance["name"] = serder.STRING.encode(nameValue)
        quotaValue = value.quota
        instance["quota"] = serder.INT.encode(quotaValue)
        from netbluemind.mailbox.api.MailboxRouting import MailboxRouting
        from netbluemind.mailbox.api.MailboxRouting import __MailboxRoutingSerDer__
        routingValue = value.routing
        instance["routing"] = __MailboxRoutingSerDer__().encode(routingValue)
        from netbluemind.addressbook.api.VCard import VCard
        from netbluemind.addressbook.api.VCard import __VCardSerDer__
        cardValue = value.card
        instance["card"] = __VCardSerDer__().encode(cardValue)
        dataLocationValue = value.dataLocation
        instance["dataLocation"] = serder.STRING.encode(dataLocationValue)
        return instance
Ejemplo n.º 3
0
    def encodeInternal(self, value, instance):
        __DirBaseValueSerDer__().encodeInternal(value, instance)

        nameValue = value.name
        instance["name"] = serder.STRING.encode(nameValue)
        descriptionValue = value.description
        instance["description"] = serder.STRING.encode(descriptionValue)
        propertiesValue = value.properties
        instance["properties"] = serder.MapSerDer(
            serder.STRING).encode(propertiesValue)
        hiddenMembersValue = value.hiddenMembers
        instance["hiddenMembers"] = serder.BOOLEAN.encode(hiddenMembersValue)
        mailArchivedValue = value.mailArchived
        instance["mailArchived"] = serder.BOOLEAN.encode(mailArchivedValue)
        dataLocationValue = value.dataLocation
        instance["dataLocation"] = serder.STRING.encode(dataLocationValue)
        memberCountValue = value.memberCount
        instance["memberCount"] = serder.INT.encode(memberCountValue)
        return instance
Ejemplo n.º 4
0
    def encodeInternal(self, value, instance):
        __DirBaseValueSerDer__().encodeInternal(value, instance)

        loginValue = value.login
        instance["login"] = serder.STRING.encode(loginValue)
        passwordValue = value.password
        instance["password"] = serder.STRING.encode(passwordValue)
        from netbluemind.addressbook.api.VCard import VCard
        from netbluemind.addressbook.api.VCard import __VCardSerDer__
        contactInfosValue = value.contactInfos
        instance["contactInfos"] = __VCardSerDer__().encode(contactInfosValue)
        from netbluemind.mailbox.api.MailboxRouting import MailboxRouting
        from netbluemind.mailbox.api.MailboxRouting import __MailboxRoutingSerDer__
        routingValue = value.routing
        instance["routing"] = __MailboxRoutingSerDer__().encode(routingValue)
        dataLocationValue = value.dataLocation
        instance["dataLocation"] = serder.STRING.encode(dataLocationValue)
        quotaValue = value.quota
        instance["quota"] = serder.INT.encode(quotaValue)
        propertiesValue = value.properties
        instance["properties"] = serder.MapSerDer(
            serder.STRING).encode(propertiesValue)
        return instance
Ejemplo n.º 5
0
    def encodeInternal(self, value, instance):
        __DirBaseValueSerDer__().encodeInternal(value, instance)

        labelValue = value.label
        instance["label"] = serder.STRING.encode(labelValue)
        typeIdentifierValue = value.typeIdentifier
        instance["typeIdentifier"] = serder.STRING.encode(typeIdentifierValue)
        descriptionValue = value.description
        instance["description"] = serder.STRING.encode(descriptionValue)
        from netbluemind.resource.api.ResourceReservationMode import ResourceReservationMode
        from netbluemind.resource.api.ResourceReservationMode import __ResourceReservationModeSerDer__
        reservationModeValue = value.reservationMode
        instance["reservationMode"] = __ResourceReservationModeSerDer__(
        ).encode(reservationModeValue)
        mailboxLocationValue = value.mailboxLocation
        instance["mailboxLocation"] = serder.STRING.encode(
            mailboxLocationValue)
        from netbluemind.resource.api.ResourceDescriptorPropertyValue import ResourceDescriptorPropertyValue
        from netbluemind.resource.api.ResourceDescriptorPropertyValue import __ResourceDescriptorPropertyValueSerDer__
        propertiesValue = value.properties
        instance["properties"] = serder.ListSerDer(
            __ResourceDescriptorPropertyValueSerDer__()).encode(
                propertiesValue)
        return instance