diff options
-rwxr-xr-x | apps/patchwork/bin/pwclient (renamed from apps/patchwork/bin/pwclient.py) | 0 | ||||
-rw-r--r-- | apps/patchwork/urls.py | 2 | ||||
-rw-r--r-- | apps/patchwork/views/base.py | 4 | ||||
-rw-r--r-- | templates/patchwork/help/pwclient.html | 2 | ||||
l--------- | templates/patchwork/pwclient (renamed from templates/patchwork/pwclient.py) | 0 |
5 files changed, 4 insertions, 4 deletions
diff --git a/apps/patchwork/bin/pwclient.py b/apps/patchwork/bin/pwclient index 5b2c2da..5b2c2da 100755 --- a/apps/patchwork/bin/pwclient.py +++ b/apps/patchwork/bin/pwclient diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py index ef1f2ad..c969b29 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<project_id>[^/]+)/pwclientrc/$', 'patchwork.views.pwclientrc'), ) diff --git a/apps/patchwork/views/base.py b/apps/patchwork/views/base.py index b49b221..a827d10 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 efce79c..a260202 100644 --- a/templates/patchwork/help/pwclient.html +++ b/templates/patchwork/help/pwclient.html @@ -11,7 +11,7 @@ and applying patches.</p> <p>To use pwclient, you will need:</p> <ul> - <li>The <a href="{% url patchwork.views.pwclient %}">pwclient.py</a> + <li>The <a href="{% url patchwork.views.pwclient %}">pwclient</a> program (11kB, python script)</li> <li>(optional) a <code>.pwclientrc</code> file in your home directory.</li> </ul> diff --git a/templates/patchwork/pwclient.py b/templates/patchwork/pwclient index c196eb3..c196eb3 120000 --- a/templates/patchwork/pwclient.py +++ b/templates/patchwork/pwclient |