) # Event URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/event/add/$'), AddEvent.as_view(), name=EVENT_ADD), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/edit/$'), EditEvent.as_view(), name=EVENT_EDIT), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/delete/$'), DeleteEvent.as_view(), name=EVENT_DELETE), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/$'), ViewEvent.as_view(), name=EVENT_VIEW), url(_(r'^(?P<space_url>\w+)/event/$'), ListEvents.as_view(), name=EVENT_LIST), ) # Intent URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/intent/$'), 'core.spaces.views.intent.add_intent', name=INTENT_ADD), url(_(r'^(?P<space_url>\w+)/intent/approve/(?P<token>\w+)/$'), ValidateIntent.as_view(), name=INTENT_VALIDATE),
) # Event URLs urlpatterns += patterns( '', url(_(r'^(?P<space_url>\w+)/event/add/$'), AddEvent.as_view(), name='add-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/edit/$'), EditEvent.as_view(), name='edit-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/delete/$'), DeleteEvent.as_view(), name='delete-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/$'), ViewEvent.as_view(), name='view-event'), url(_(r'^(?P<space_url>\w+)/event/$'), ListEvents.as_view(), name='list-events'), ) # Intent URLs urlpatterns += patterns( '', url(_(r'^(?P<space_url>\w+)/intent/$'), 'core.spaces.views.intent.add_intent', name='add-intent'), url(_(r'^(?P<space_url>\w+)/intent/approve/(?P<token>\w+)/$'), ValidateIntent.as_view(), name='validate-intent'),
) # Event URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/event/add/$'), AddEvent.as_view(), name='add-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/edit/$'), EditEvent.as_view(), name='edit-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/delete/$'), DeleteEvent.as_view(), name='delete-event'), url(_(r'^(?P<space_url>\w+)/event/(?P<event_id>\d+)/$'), ViewEvent.as_view(), name='view-event'), url(_(r'^(?P<space_url>\w+)/event/$'), ListEvents.as_view(), name='list-events'), ) # Intent URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/intent/$'), 'core.spaces.views.intent.add_intent', name='add-intent'), url(_(r'^(?P<space_url>\w+)/intent/approve/(?P<token>\w+)/$'), ValidateIntent.as_view(), name='validate-intent'), )