Пример #1
0
 def parseInternal(self, value, instance):
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     dtstartValue = value['dtstart']
     instance.dtstart = __BmDateTimeSerDer__().parse(dtstartValue)
     summaryValue = value['summary']
     instance.summary = serder.STRING.parse(summaryValue)
     from netbluemind.icalendar.api.ICalendarElementClassification import ICalendarElementClassification
     from netbluemind.icalendar.api.ICalendarElementClassification import __ICalendarElementClassificationSerDer__
     classificationValue = value['classification']
     instance.classification = __ICalendarElementClassificationSerDer__(
     ).parse(classificationValue)
     locationValue = value['location']
     instance.location = serder.STRING.parse(locationValue)
     descriptionValue = value['description']
     instance.description = serder.STRING.parse(descriptionValue)
     priorityValue = value['priority']
     instance.priority = serder.INT.parse(priorityValue)
     from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
     from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
     alarmValue = value['alarm']
     instance.alarm = serder.ListSerDer(
         __ICalendarElementVAlarmSerDer__()).parse(alarmValue)
     from netbluemind.icalendar.api.ICalendarElementStatus import ICalendarElementStatus
     from netbluemind.icalendar.api.ICalendarElementStatus import __ICalendarElementStatusSerDer__
     statusValue = value['status']
     instance.status = __ICalendarElementStatusSerDer__().parse(statusValue)
     from netbluemind.icalendar.api.ICalendarElementAttendee import ICalendarElementAttendee
     from netbluemind.icalendar.api.ICalendarElementAttendee import __ICalendarElementAttendeeSerDer__
     attendeesValue = value['attendees']
     instance.attendees = serder.ListSerDer(
         __ICalendarElementAttendeeSerDer__()).parse(attendeesValue)
     from netbluemind.icalendar.api.ICalendarElementOrganizer import ICalendarElementOrganizer
     from netbluemind.icalendar.api.ICalendarElementOrganizer import __ICalendarElementOrganizerSerDer__
     organizerValue = value['organizer']
     instance.organizer = __ICalendarElementOrganizerSerDer__().parse(
         organizerValue)
     from netbluemind.tag.api.TagRef import TagRef
     from netbluemind.tag.api.TagRef import __TagRefSerDer__
     categoriesValue = value['categories']
     instance.categories = serder.ListSerDer(
         __TagRefSerDer__()).parse(categoriesValue)
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     exdateValue = value['exdate']
     instance.exdate = serder.SetSerDer(
         __BmDateTimeSerDer__()).parse(exdateValue)
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     rdateValue = value['rdate']
     instance.rdate = serder.SetSerDer(
         __BmDateTimeSerDer__()).parse(rdateValue)
     from netbluemind.icalendar.api.ICalendarElementRRule import ICalendarElementRRule
     from netbluemind.icalendar.api.ICalendarElementRRule import __ICalendarElementRRuleSerDer__
     rruleValue = value['rrule']
     instance.rrule = __ICalendarElementRRuleSerDer__().parse(rruleValue)
     urlValue = value['url']
     instance.url = serder.STRING.parse(urlValue)
     return instance
Пример #2
0
 def parseInternal(self, value, instance):
     from netbluemind.calendar.api.VEvent import VEvent
     from netbluemind.calendar.api.VEvent import __VEventSerDer__
     from netbluemind.core.container.model.ItemValue import ItemValue
     from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
     veventValue = value['vevent']
     instance.vevent = __ItemValueSerDer__(
         __VEventSerDer__()).parse(veventValue)
     from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
     from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
     valarmValue = value['valarm']
     instance.valarm = __ICalendarElementVAlarmSerDer__().parse(valarmValue)
     return instance
Пример #3
0
    def encodeInternal(self, value, instance):

        from netbluemind.calendar.api.VEvent import VEvent
        from netbluemind.calendar.api.VEvent import __VEventSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        veventValue = value.vevent
        instance["vevent"] = __ItemValueSerDer__(
            __VEventSerDer__()).encode(veventValue)
        from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
        from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
        valarmValue = value.valarm
        instance["valarm"] = __ICalendarElementVAlarmSerDer__().encode(
            valarmValue)
        return instance
Пример #4
0
 def parseInternal(self, value, instance):
     from netbluemind.user.api.User import User
     from netbluemind.user.api.User import __UserSerDer__
     userValue = value['user']
     instance.user = __UserSerDer__().parse(userValue)
     from netbluemind.todolist.api.VTodo import VTodo
     from netbluemind.todolist.api.VTodo import __VTodoSerDer__
     from netbluemind.core.container.model.ItemValue import ItemValue
     from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
     todoValue = value['todo']
     instance.todo = __ItemValueSerDer__(__VTodoSerDer__()).parse(todoValue)
     from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
     from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
     valarmValue = value['valarm']
     instance.valarm = __ICalendarElementVAlarmSerDer__().parse(valarmValue)
     return instance
Пример #5
0
    def encodeInternal(self, value, instance):

        from netbluemind.user.api.User import User
        from netbluemind.user.api.User import __UserSerDer__
        userValue = value.user
        instance["user"] = __UserSerDer__().encode(userValue)
        from netbluemind.todolist.api.VTodo import VTodo
        from netbluemind.todolist.api.VTodo import __VTodoSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        todoValue = value.todo
        instance["todo"] = __ItemValueSerDer__(
            __VTodoSerDer__()).encode(todoValue)
        from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
        from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
        valarmValue = value.valarm
        instance["valarm"] = __ICalendarElementVAlarmSerDer__().encode(
            valarmValue)
        return instance
Пример #6
0
    def encodeInternal(self, value, instance):

        from netbluemind.core.api.date.BmDateTime import BmDateTime
        from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
        dtstartValue = value.dtstart
        instance["dtstart"] = __BmDateTimeSerDer__().encode(dtstartValue)
        summaryValue = value.summary
        instance["summary"] = serder.STRING.encode(summaryValue)
        from netbluemind.icalendar.api.ICalendarElementClassification import ICalendarElementClassification
        from netbluemind.icalendar.api.ICalendarElementClassification import __ICalendarElementClassificationSerDer__
        classificationValue = value.classification
        instance["classification"] = __ICalendarElementClassificationSerDer__(
        ).encode(classificationValue)
        locationValue = value.location
        instance["location"] = serder.STRING.encode(locationValue)
        descriptionValue = value.description
        instance["description"] = serder.STRING.encode(descriptionValue)
        priorityValue = value.priority
        instance["priority"] = serder.INT.encode(priorityValue)
        from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
        from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
        alarmValue = value.alarm
        instance["alarm"] = serder.ListSerDer(
            __ICalendarElementVAlarmSerDer__()).encode(alarmValue)
        from netbluemind.icalendar.api.ICalendarElementStatus import ICalendarElementStatus
        from netbluemind.icalendar.api.ICalendarElementStatus import __ICalendarElementStatusSerDer__
        statusValue = value.status
        instance["status"] = __ICalendarElementStatusSerDer__().encode(
            statusValue)
        from netbluemind.icalendar.api.ICalendarElementAttendee import ICalendarElementAttendee
        from netbluemind.icalendar.api.ICalendarElementAttendee import __ICalendarElementAttendeeSerDer__
        attendeesValue = value.attendees
        instance["attendees"] = serder.ListSerDer(
            __ICalendarElementAttendeeSerDer__()).encode(attendeesValue)
        from netbluemind.icalendar.api.ICalendarElementOrganizer import ICalendarElementOrganizer
        from netbluemind.icalendar.api.ICalendarElementOrganizer import __ICalendarElementOrganizerSerDer__
        organizerValue = value.organizer
        instance["organizer"] = __ICalendarElementOrganizerSerDer__().encode(
            organizerValue)
        from netbluemind.tag.api.TagRef import TagRef
        from netbluemind.tag.api.TagRef import __TagRefSerDer__
        categoriesValue = value.categories
        instance["categories"] = serder.ListSerDer(
            __TagRefSerDer__()).encode(categoriesValue)
        from netbluemind.core.api.date.BmDateTime import BmDateTime
        from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
        exdateValue = value.exdate
        instance["exdate"] = serder.SetSerDer(
            __BmDateTimeSerDer__()).encode(exdateValue)
        from netbluemind.core.api.date.BmDateTime import BmDateTime
        from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
        rdateValue = value.rdate
        instance["rdate"] = serder.SetSerDer(
            __BmDateTimeSerDer__()).encode(rdateValue)
        from netbluemind.icalendar.api.ICalendarElementRRule import ICalendarElementRRule
        from netbluemind.icalendar.api.ICalendarElementRRule import __ICalendarElementRRuleSerDer__
        rruleValue = value.rrule
        instance["rrule"] = __ICalendarElementRRuleSerDer__().encode(
            rruleValue)
        urlValue = value.url
        instance["url"] = serder.STRING.encode(urlValue)
        return instance