예제 #1
0
 'location_name':
 fields.String(),
 'searchable_location_name':
 fields.String(),
 'organizer_name':
 fields.String(),
 'organizer_description':
 fields.String(),
 'state':
 EventStateField(default='Draft'),
 'type':
 EventTypeField(),
 'topic':
 EventTopicField(),
 'sub_topic':
 EventSubTopicField(),
 'privacy':
 EventPrivacyField(),
 'ticket_url':
 fields.Uri(),
 'copyright':
 fields.Nested(EVENT_COPYRIGHT, allow_null=True),
 'licence_details':
 fields.Licence(attribute='copyright.licence', allow_null=True),
 'schedule_published_on':
 fields.DateTime(),
 'code_of_conduct':
 fields.String(),
 'social_links':
 fields.List(fields.Nested(SOCIAL_LINK), attribute='social_link'),
 'call_for_papers':
예제 #2
0
    'logo': fields.Upload(),
    'start_time': fields.DateTime(required=True),
    'end_time': fields.DateTime(required=True),
    'timezone': fields.String(),
    'latitude': fields.Float(),
    'longitude': fields.Float(),
    'background_image': fields.Upload(attribute='background_url'),
    'description': fields.String(),
    'location_name': fields.String(),
    'searchable_location_name': fields.String(),
    'organizer_name': fields.String(),
    'organizer_description': fields.String(),
    'state': EventStateField(default='Draft'),
    'type': EventTypeField(),
    'topic': EventTopicField(),
    'sub_topic': EventSubTopicField(),
    'privacy': EventPrivacyField(),
    'ticket_url': fields.Uri(),
    'copyright': fields.Nested(EVENT_COPYRIGHT, allow_null=True),
    'schedule_published_on': fields.DateTime(),
    'code_of_conduct': fields.String(),
    'social_links': fields.List(fields.Nested(SOCIAL_LINK), attribute='social_link'),
    'call_for_papers': fields.Nested(EVENT_CFS, allow_null=True),
    'version': fields.Nested(EVENT_VERSION),
    'has_session_speakers': fields.Boolean(default=False),
    'thumbnail': fields.Uri(),
    'large': fields.Uri()
})

EVENT_COMPLETE = api.clone('EventComplete', EVENT, {
    'sessions': fields.List(fields.Nested(SESSION), attribute='session'),