From c3b440bc54591f9f64ae8ffa73a6c161d6976eb1 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 9 Sep 2008 10:46:47 +1000 Subject: [PATCH] Rename pwclient.py to pwclient Signed-off-by: Jeremy Kerr --- apps/patchwork/bin/{pwclient.py => pwclient} | 0 apps/patchwork/urls.py | 2 +- apps/patchwork/views/base.py | 4 ++-- templates/patchwork/help/pwclient.html | 2 +- templates/patchwork/{pwclient.py => pwclient} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename apps/patchwork/bin/{pwclient.py => pwclient} (100%) rename templates/patchwork/{pwclient.py => pwclient} (100%) 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 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[^/]+)/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.

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 -- 2.39.2