コード例 #1
0
ファイル: urls.py プロジェクト: osharim/e-cidadania
        include('apps.ecidadania.cal.urls')),

    # Debates
    url(_(r'^(?P<space_url>\w+)/debate/'),
        include('apps.ecidadania.debate.urls')),

    # Debates
    url(_(r'^(?P<space_url>\w+)/voting/'),
        include('apps.ecidadania.voting.urls')),
)

# Document URLs
urlpatterns += patterns(
    '',
    url(_(r'^(?P<space_url>\w+)/docs/add/$'),
        AddDocument.as_view(),
        name='add-document'),
    url(_(r'^(?P<space_url>\w+)/docs/(?P<doc_id>\d+)/edit/$'),
        EditDocument.as_view(),
        name='edit-document'),
    url(_(r'^(?P<space_url>\w+)/docs/(?P<doc_id>\d+)/delete/$'),
        DeleteDocument.as_view(),
        name='delete-document'),
    url(_(r'^(?P<space_url>\w+)/docs/$'),
        ListDocs.as_view(),
        name='list-documents'),
)

# Event URLs
urlpatterns += patterns(
    '',
コード例 #2
0
        include('apps.ecidadania.cal.urls')),

    # Debates
    url(_(r'^(?P<space_url>\w+)/debate/'),
        include('apps.ecidadania.debate.urls')),
    
    # Debates
    url(_(r'^(?P<space_url>\w+)/voting/'),
        include('apps.ecidadania.voting.urls')),

)

# Document URLs
urlpatterns += patterns('',

    url(_(r'^(?P<space_url>\w+)/docs/add/$'), AddDocument.as_view(),
        name=DOCUMENT_ADD),

    url(_(r'^(?P<space_url>\w+)/docs/(?P<doc_id>\d+)/edit/$'),
        EditDocument.as_view(), name=DOCUMENT_EDIT),

    url(_(r'^(?P<space_url>\w+)/docs/(?P<doc_id>\d+)/delete/$'),
        DeleteDocument.as_view(), name=DOCUMENT_DELETE),

    url(_(r'^(?P<space_url>\w+)/docs/$'), ListDocs.as_view(),
        name=DOCUMENT_LIST),

)

# Event URLs
urlpatterns += patterns('',