# -*- coding: utf-8 -*- # kate: space-indent on; indent-width 4; replace-tabs on; """ * Copyright © 2009-2010, Michael "Svedrin" Ziegler * * Mumble-Django is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This package is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. """ from django.conf.urls.defaults import patterns, include from views import EXT_DIRECT_PROVIDER from forms import EXT_FORMS_PROVIDER urlpatterns = patterns( 'mumble.views', ( r'djangousers', 'djangousers' ), ( r'(?P\d+)/users', 'users' ), ( r'api/', include(EXT_DIRECT_PROVIDER.urls) ), ( r'forms/', include(EXT_FORMS_PROVIDER.urls) ), ( r'(?P\d+)/(?P\d+)/texture.png', 'showTexture' ), ( r'murmur/tree/(?P\d+)', 'mmng_tree' ), ( r'mumbleviewer/(?P\d+).xml', 'mumbleviewer_tree_xml' ), ( r'mumbleviewer/(?P\d+).json', 'mumbleviewer_tree_json'), ( r'mobile/(?P\d+)', 'mobile_show' ), ( r'mobile/?$', 'mobile_mumbles' ), ( r'(?P\d+).json', 'cvp_json' ), ( r'(?P\d+).xml', 'cvp_xml' ), ( r'(?P\d+)', 'show' ), ( r'$', 'mumbles' ), )