From: Jeremy Kerr Date: Tue, 9 Sep 2008 00:46:47 +0000 (+1000) Subject: Rename pwclient.py to pwclient X-Git-Tag: v0.9.0~337 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3b440bc54591f9f64ae8ffa73a6c161d6976eb1;p=thirdparty%2Fpatchwork.git Rename pwclient.py to pwclient Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/bin/pwclient.py b/apps/patchwork/bin/pwclient similarity index 100% rename from apps/patchwork/bin/pwclient.py rename to apps/patchwork/bin/pwclient diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py index ef1f2adc..c969b295 100644 --- a/apps/patchwork/urls.py +++ b/apps/patchwork/urls.py @@ -59,7 +59,7 @@ urlpatterns = patterns('', if settings.ENABLE_XMLRPC: urlpatterns += patterns('', (r'xmlrpc/$', 'patchwork.views.xmlrpc.xmlrpc'), - (r'^pwclient.py/$', 'patchwork.views.pwclient'), + (r'^pwclient/$', 'patchwork.views.pwclient'), (r'^project/(?P[^/]+)/pwclientrc/$', 'patchwork.views.pwclientrc'), ) diff --git a/apps/patchwork/views/base.py b/apps/patchwork/views/base.py index b49b221e..a827d10a 100644 --- a/apps/patchwork/views/base.py +++ b/apps/patchwork/views/base.py @@ -70,8 +70,8 @@ def pwclientrc(request, project_id): def pwclient(request): context = PatchworkRequestContext(request) response = HttpResponse(mimetype = "text/x-python") - response['Content-Disposition'] = 'attachment; filename=pwclient.py' - response.write(render_to_string('patchwork/pwclient.py', context)) + response['Content-Disposition'] = 'attachment; filename=pwclient' + response.write(render_to_string('patchwork/pwclient', context)) return response def submitter_complete(request): diff --git a/templates/patchwork/help/pwclient.html b/templates/patchwork/help/pwclient.html index efce79c3..a260202f 100644 --- a/templates/patchwork/help/pwclient.html +++ b/templates/patchwork/help/pwclient.html @@ -11,7 +11,7 @@ and applying patches.

To use pwclient, you will need:

    -
  • The pwclient.py +
  • The pwclient program (11kB, python script)
  • (optional) a .pwclientrc file in your home directory.
diff --git a/templates/patchwork/pwclient.py b/templates/patchwork/pwclient similarity index 100% rename from templates/patchwork/pwclient.py rename to templates/patchwork/pwclient