) # Spaces URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/edit/'), 'core.spaces.views.spaces.edit_space', name=SPACE_EDIT), url(_(r'^(?P<space_url>\w+)/delete/'), DeleteSpace.as_view(), name=SPACE_DELETE), url(_(r'^(?P<space_url>\w+)/news/$'), RedirectArchive.as_view(), name=SPACE_NEWS), url(_(r'^(?P<space_url>\w+)/news/archive/$'), ListPosts.as_view(), name=NEWS_ARCHIVE), url(_(r'^(?P<space_url>\w+)/news/archive/(?P<year>\d{4})/$'), YearlyPosts.as_view(), name=NEWS_YEAR), url(_(r'^(?P<space_url>\w+)/news/archive/(?P<year>\d{4})/(?P<month>\w+)/$'), MonthlyPosts.as_view(), name=NEWS_MONTH), url(_(r'^add/$'), 'core.spaces.views.spaces.create_space', name=SPACE_ADD), url(r'^$', ListSpaces.as_view(), name=SPACE_LIST), #url(_(r'^go/'), GoToSpace.as_view(), name=GOTO_SPACE),
'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'), ) # Spaces URLs urlpatterns += patterns( '', url(_(r'^(?P<space_url>\w+)/edit/'), 'core.spaces.views.spaces.edit_space', name='edit-space'), url(_(r'^(?P<space_url>\w+)/delete/'), DeleteSpace.as_view(), name='delete-space'), url(_(r'^(?P<space_url>\w+)/news/'), ListPosts.as_view(), name='list-space-news'), url(_(r'^add/$'), 'core.spaces.views.spaces.create_space', name='create-space'), url(r'^$', ListSpaces.as_view(), name='list-spaces'), url(_(r'^go/'), GoToSpace.as_view(), name='goto-space'), url(_(r'^(?P<space_url>\w+)/roles/'), EditRole.as_view(), name='edit-roles'), url(r'^(?P<space_url>\w+)/$', ViewSpaceIndex.as_view(), name='space-index'), )
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'), ) # Spaces URLs urlpatterns += patterns('', url(_(r'^(?P<space_url>\w+)/edit/'), 'core.spaces.views.spaces.edit_space', name='edit-space'), url(_(r'^(?P<space_url>\w+)/delete/'), DeleteSpace.as_view(), name='delete-space'), url(_(r'^(?P<space_url>\w+)/news/'), ListPosts.as_view(), name='list-space-news'), url(_(r'^add/$'), 'core.spaces.views.spaces.create_space', name='create-space'), url(r'^$', ListSpaces.as_view(), name='list-spaces'), url(_(r'^go/'), GoToSpace.as_view(), name='goto-space'), url(_(r'^(?P<space_url>\w+)/roles/'), EditRole.as_view(), name='edit-roles'), url(r'^(?P<space_url>\w+)/$', ViewSpaceIndex.as_view(), name='space-index'),