Commit c3b440bc authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

Rename pwclient.py to pwclient


Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 305136de
......@@ -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'),
)
......@@ -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):
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment