PageRenderTime 9ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/diamandas/myghtyboard/URLconf.py

http://diamanda.googlecode.com/
Python | 31 lines | 27 code | 3 blank | 1 comment | 0 complexity | 2c977fc22aba5f9935a442c54a0c79fd MD5 | raw file
 1from django.conf.urls.defaults import *
 2
 3# Myghtyboard URLs
 4urlpatterns = patterns('diamandas.myghtyboard.views',
 5(r'^$', 'category_list'),
 6(r'^forum/(?P<forum_id>[0-9]+)/$', 'topic_list'),
 7(r'^forum/(?P<forum_id>[0-9]+)/(?P<pagination_id>[0-9]+)/$', 'topic_list'),
 8(r'^topic/(?P<pagination_id>[0-9]+)/(?P<topic_id>[0-9]+)/$', 'post_list'),
 9(r'^mytopics/(?P<show_user>.*)/$', 'my_topic_list'),
10(r'^mytopics/$', 'my_topic_list'),
11(r'^lasttopics/$', 'last_topic_list'),
12(r'^myptopics/(?P<show_user>.*)/$', 'my_posttopic_list'),
13(r'^myptopics/$', 'my_posttopic_list'),
14)
15
16urlpatterns += patterns('diamandas.myghtyboard.views_add_edit',
17(r'^add_topic/(?P<forum_id>[0-9]+)/$', 'add_topic'),
18(r'^add_post/(?P<topic_id>[0-9]+)/(?P<post_id>[0-9]+)/$', 'add_post'), # add post with quote
19(r'^add_post/(?P<topic_id>[0-9]+)/$', 'add_post'),
20(r'^edit_post/(?P<post_id>[0-9]+)/$', 'edit_post'),
21)
22
23urlpatterns += patterns('diamandas.myghtyboard.views_actions',
24(r'^delete_post/(?P<post_id>[0-9]+)/(?P<topic_id>[0-9]+)/$', 'delete_post'),
25(r'^move_topic/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'move_topic'),
26(r'^delete_topic/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'delete_topic'),
27(r'^close_topic/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'close_topic'),
28(r'^open_topic/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'open_topic'),
29(r'^topic/solve/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'solve_topic'),
30(r'^topic/unsolve/(?P<topic_id>[0-9]+)/(?P<forum_id>[0-9]+)/$', 'unsolve_topic'),
31)