예제 #1
0
파일: urls.py 프로젝트: AaronMBrown/denigma
    CategoryUpdate,
    CategoryList,
    TagDetail,
    TagList,
    HierarchyList,
)
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed


urlpatterns = patterns(
    "data.views",
    url(r"^$", "index", name="data"),
    # Entries:
    ## Class-Views
    url(r"^entries/list/$", EntryList.as_view(paginate_by=20), name="list-entries"),
    url(r"^entry/table/$", Entries.as_view(template_name="data/entry_table.html"), name="entry-table"),
    # url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'),
    url(
        r"^entry/(?P<pk>\d+)", DetailView.as_view(model=Entry), name="detail-entry"
    ),  # User generic class-based view # template_name='entry_detail.html' # use defaults
    url(r"^entry/view/(?P<slug>.+)", EntryView.as_view(), name="view-entry"),
    url(r"^entry/create/$", EntryCreate.as_view(), name="create-entry"),
    url(r"^entry/generate/(?P<title>.+)", Generate.as_view(), name="generate-entry"),
    url(r"^entry/update/(?P<pk>\d+)", login_required(EntryUpdate.as_view()), name="update-entry"),
    url(r"^entry/update/(?P<slug>.+)", login_required(EntryUpdate.as_view()), name="update-entry"),
    url(r"^entry/delete/(?P<pk>\d+)", login_required(EntryDelete.as_view()), name="delete-entry"),
    url(r"^entry/feed/$", EntryFeed(), name="data-entry-feed"),
    url(r"^entry/(?P<slug>.+)", EntryView.as_view(), name="detail-entry"),  #  Alternative detail entry accepting slug.
    url(r"^hierarchy/list/$", HierarchyList.as_view(), name="list-hierarchy"),
    ## Function-Views:
    url(r"^entries/$", "entries", name="entries"),
예제 #2
0
파일: urls.py 프로젝트: al-layth/denigma
                  CategoryCreate, CategoryUpdate, CategoryList, \
                  TagDetail, TagList, \
                  HierarchyList, VivaGraph#, DictionaryView
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed

urlpatterns = patterns(
    'data.views',
    url(r'^$', 'index', name='data'),

    # Entries:
    ## Class-Views
    url(r'^entries/list/$',
        EntryList.as_view(paginate_by=10),
        name='list-entries'),
    url(r'^entry/table/$',
        Entries.as_view(template_name='data/entry_table.html'),
        name='entry-table'),
    #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'),
    url(
        r'^entry/(?P<pk>\d+)$',
        DetailView.as_view(model=Entry),
        name='detail-entry'
    ),  # User generic class-based view # template_name='entry_detail.html' # use defaults
    url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'),
    url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'),
    url(r'^entry/generate/(?P<title>.+)',
        login_required(Generate.as_view()),
        name='generate-entry'),
    url(r'^entry/update/(?P<pk>\d+)',
        login_required(EntryUpdate.as_view()),
        name='update-entry'),
예제 #3
0
파일: urls.py 프로젝트: McDoku/denigma
                  ChangeList, ChangeView, \
                  RelationCreate, RelationUpdate, RelationList, GenerateRelation, \
                  AlterationList,\
                  CategoryCreate, CategoryUpdate, CategoryList, \
                  TagDetail, TagList, \
                  HierarchyList, VivaGraph#, DictionaryView
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed


urlpatterns = patterns('data.views',
    url(r'^$', 'index', name='data'),

    # Entries:
    ## Class-Views
    url(r'^entries/list/$', EntryList.as_view(paginate_by=10), name='list-entries'),
    url(r'^entry/table/$', Entries.as_view(template_name='data/entry_table.html'), name='entry-table'),
    #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'),
    url(r'^entry/(?P<pk>\d+)$', DetailView.as_view(model=Entry), name='detail-entry'), # User generic class-based view # template_name='entry_detail.html' # use defaults

    url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'),
    url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'),
    url(r'^entry/generate/(?P<title>.+)', login_required(Generate.as_view()), name='generate-entry'),
    url(r'^entry/update/(?P<pk>\d+)', login_required(EntryUpdate.as_view()), name='update-entry'),
    url(r'^entry/update/(?P<slug>.+)', login_required(EntryUpdate.as_view()), name='update-entry'),
    url(r'^entry/delete/(?P<pk>\d+)', login_required(EntryDelete.as_view()), name='delete-entry'),
    url(r'^entry/feed/$', EntryFeed(), name='data-entry-feed'),
    url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), #  Alternative detail entry accepting slug.
    url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),


    ## Function-Views:
예제 #4
0
파일: urls.py 프로젝트: denigma/denigma
                  ChangeList, ChangeView, \
                  RelationCreate, RelationUpdate, RelationList, GenerateRelation, \
                  AlterationList,\
                  CategoryCreate, CategoryUpdate, CategoryList, \
                  TagDetail, TagList, \
                  HierarchyList, VivaGraph#, DictionaryView
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed


urlpatterns = patterns('data.views',
    url(r'^$', 'index', name='data'),

    # Entries:
    ## Class-Views
    url(r'^entries/list/$', login_required(EntryList.as_view(paginate_by=10)), name='list-entries'),
    url(r'^entry/table/$', login_required(Entries.as_view(template_name='data/entry_table.html')),
        name='entry-table'),
    #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'),
    url(r'^entry/(?P<pk>\d+)$', DetailView.as_view(model=Entry), name='detail-entry'), # User generic class-based view # template_name='entry_detail.html' # use defaults

    url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'),
    url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'),
    url(r'^entry/generate/(?P<title>.+)', login_required(Generate.as_view()), name='generate-entry'),
    url(r'^entry/update/(?P<pk>\d+)', login_required(EntryUpdate.as_view()), name='update-entry'),
    url(r'^entry/update/(?P<slug>.+)', login_required(EntryUpdate.as_view()), name='update-entry'),
    url(r'^entry/delete/(?P<pk>\d+)', login_required(EntryDelete.as_view()), name='delete-entry'),
    url(r'^entry/feed/$', EntryFeed(), name='data-entry-feed'),
    url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), #  Alternative detail entry accepting slug.
    url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),