2010-03-30 14:43:30 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2010-04-06 18:23:26 +00:00
|
|
|
from markupwiki.feeds import LatestEditsFeed, LatestArticleEditsFeed
|
2010-03-30 14:43:30 +00:00
|
|
|
|
2010-04-05 17:45:05 +00:00
|
|
|
WIKI_REGEX = r'^(?P<title>.+)'
|
2010-03-30 14:43:30 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns('markupwiki.views',
|
2010-04-06 18:23:26 +00:00
|
|
|
url('^rss/$', LatestEditsFeed(), name='wiki_rss'),
|
|
|
|
url(WIKI_REGEX + '/rss/$', LatestArticleEditsFeed(), name='article_rss'),
|
2010-03-30 14:43:30 +00:00
|
|
|
url(WIKI_REGEX + '/edit/$', 'edit_article', name='edit_article'),
|
2010-04-02 17:50:49 +00:00
|
|
|
url(WIKI_REGEX + '/update_status/$', 'article_status', name='update_article_status'),
|
|
|
|
url(WIKI_REGEX + '/rename_article/$', 'rename', name='rename_article'),
|
2010-03-30 14:43:30 +00:00
|
|
|
url(WIKI_REGEX + '/history/$', 'article_history', name='article_history'),
|
|
|
|
url(WIKI_REGEX + '/history/(?P<n>\d+)/$', 'view_article', name='article_version'),
|
|
|
|
url(WIKI_REGEX + '/diff/$', 'article_diff', name='article_diff'),
|
2012-01-05 16:43:00 +00:00
|
|
|
url(WIKI_REGEX + '/revert/$', 'revert', name='revert'),
|
2010-04-05 17:45:05 +00:00
|
|
|
url(WIKI_REGEX + '/$', 'view_article', name='view_article'),
|
2010-03-30 14:43:30 +00:00
|
|
|
)
|