X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=apps%2Fpatchwork%2Furls.py;h=c969b2954d356faddf3f665f7f95e69b118e9245;hb=969d359e9c2f3eb5ee4741208ef17639d5e1b180;hp=9e7e6b917707e228df581b3117fd0481215563a9;hpb=05d26756d7e7f254d5631a0649aeac5fd3a58ca8;p=patchwork diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py index 9e7e6b9..c969b29 100644 --- a/apps/patchwork/urls.py +++ b/apps/patchwork/urls.py @@ -18,6 +18,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA from django.conf.urls.defaults import * +from django.conf import settings urlpatterns = patterns('', # Example: @@ -54,3 +55,11 @@ urlpatterns = patterns('', # help! (r'^help/(?P.*)$', 'patchwork.views.help'), ) + +if settings.ENABLE_XMLRPC: + urlpatterns += patterns('', + (r'xmlrpc/$', 'patchwork.views.xmlrpc.xmlrpc'), + (r'^pwclient/$', 'patchwork.views.pwclient'), + (r'^project/(?P[^/]+)/pwclientrc/$', + 'patchwork.views.pwclientrc'), + )