# Path: wiki/views/user.py
# class UserPage(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, username, *args, **kwargs):
# 
# Path: wiki/views/recent.py
# class RecentPage(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, *args, **kwargs):
# 
# Path: wiki/sitemap.py
# class WikiSitemap(sitemaps.Sitemap):
#     def items(self):
#     def changefreq(self, obj):
#     def priority(self, obj):
#     def lastmod(self, obj):
#     def location(self, obj):


from django.conf.urls import patterns, url, include
from wiki.conf import settings
from wiki.core.plugins import registry
from wiki.views import article, accounts, user, category, recent
from wiki.core.utils import get_class_from_str
from django.contrib.sitemaps.views import sitemap as django_sitemap_view
from wiki import sitemap
from wiki.core.plugins.loader import load_wiki_plugins
        urlpatterns = patterns('',
            # Paths decided by URLs
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_create/$', self.article_create_view_class.as_view(), name='create'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_edit/$', self.article_edit_view_class.as_view(), name='edit'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_preview/$', self.article_preview_view_class.as_view(), name='preview'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_history/$', self.article_history_view_class.as_view(), name='history'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_source/$', self.article_source_view_class.as_view(), name='source'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_revision/change/(?P<revision_id>\d+)/$', self.revision_change_view.as_view(), name='change_revision'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_revision/merge/(?P<revision_id>\d+)/$', self.revision_merge_view, name='merge_revision'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_plugin/(?P<slug>\w+)/$', self.article_plugin_view_class.as_view(), name='plugin'),
            url('^raw/(?P<language>[^/]+)/(?P<path>.+/|)$', self.article_raw_view_class.as_view(), name='raw'),
            # This should always go last!
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)$', self.article_view_class.as_view(), name='get'),
           )
        return urlpatterns

    def get_userpage_url(self):
        urlpatterns = patterns('',
            url('^(?P<username>[\w\.]+)/?$', self.userpage_class.as_view(), name='user'),
           )
        return urlpatterns

    def get_recent_url(self):
        urlpatterns = patterns('',
            url('^(?:recent|log)/?$', self.recent_view_class.as_view(), name='recent'),
           )
        return urlpatterns

    def get_sitemap_url(self):
        smaps = {

# Path: wiki/views/user.py
# class UserPage(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, username, *args, **kwargs):
# 
# Path: wiki/views/recent.py
# class RecentPage(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, *args, **kwargs):
# 
# Path: wiki/sitemap.py
# class WikiSitemap(sitemaps.Sitemap):
#     def items(self):
#     def changefreq(self, obj):
#     def priority(self, obj):
#     def lastmod(self, obj):
#     def location(self, obj):


# Path: wiki/urls.py
from django.conf.urls import patterns, url, include
from wiki.conf import settings
from wiki.core.plugins import registry
from wiki.views import article, accounts, user, category, recent
from wiki.core.utils import get_class_from_str
from django.contrib.sitemaps.views import sitemap as django_sitemap_view
from wiki import sitemap
from wiki.core.plugins.loader import load_wiki_plugins

        urlpatterns = patterns('',
            # Paths decided by URLs
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_create/$', self.article_create_view_class.as_view(), name='create'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_edit/$', self.article_edit_view_class.as_view(), name='edit'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_preview/$', self.article_preview_view_class.as_view(), name='preview'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_history/$', self.article_history_view_class.as_view(), name='history'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_source/$', self.article_source_view_class.as_view(), name='source'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_revision/change/(?P<revision_id>\d+)/$', self.revision_change_view.as_view(), name='change_revision'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_revision/merge/(?P<revision_id>\d+)/$', self.revision_merge_view, name='merge_revision'),
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)_plugin/(?P<slug>\w+)/$', self.article_plugin_view_class.as_view(), name='plugin'),
            url('^raw/(?P<language>[^/]+)/(?P<path>.+/|)$', self.article_raw_view_class.as_view(), name='raw'),
            # This should always go last!
            url('^wiki/(?P<language>[^/]+)/(?P<path>.+/|)$', self.article_view_class.as_view(), name='get'),
           )
        return urlpatterns

    def get_userpage_url(self):
        urlpatterns = patterns('',
            url('^(?P<username>[\w\.]+)/?$', self.userpage_class.as_view(), name='user'),
           )
        return urlpatterns

    def get_recent_url(self):
        urlpatterns = patterns('',
            url('^(?:recent|log)/?$', self.recent_view_class.as_view(), name='recent'),
           )
        return urlpatterns

    def get_sitemap_url(self):
        smaps = {

            'wikis': sitemap.WikiSitemap