summaryrefslogtreecommitdiffstats
path: root/templates/patchwork
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-09-08 13:07:25 +1000
committerJeremy Kerr <jk@ozlabs.org>2008-09-08 13:07:25 +1000
commit90d53c717d5d704da284cfa3b1484c11bd6c0bb1 (patch)
treeb2acb4ad7b9366140fe66c154eeaa8d7b88ab192 /templates/patchwork
parentdf3a4a384564577d6941713944e97118d43a8268 (diff)
downloadpatchwork-90d53c717d5d704da284cfa3b1484c11bd6c0bb1.tar.bz2
patchwork-90d53c717d5d704da284cfa3b1484c11bd6c0bb1.tar.xz
Make pwclient visible thorugh site, and add .pwclientrc infrastructure
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork')
-rw-r--r--templates/patchwork/help/pwclient.html23
-rw-r--r--templates/patchwork/project.html7
l---------templates/patchwork/pwclient.py1
-rw-r--r--templates/patchwork/pwclientrc2
4 files changed, 33 insertions, 0 deletions
diff --git a/templates/patchwork/help/pwclient.html b/templates/patchwork/help/pwclient.html
new file mode 100644
index 0000000..efce79c
--- /dev/null
+++ b/templates/patchwork/help/pwclient.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+{% block title %}Command-line client{% endblock %}
+{% block heading %} - Command-line client{% endblock %}
+
+{% block body %}
+
+<p><code>pwclient</code> is the command-line client for patchwork. Currently,
+it provides access to some read-only features of patchwork, such as downloading
+and applying patches.</p>
+
+<p>To use pwclient, you will need:</p>
+<ul>
+ <li>The <a href="{% url patchwork.views.pwclient %}">pwclient.py</a>
+ program (11kB, python script)</li>
+ <li>(optional) a <code>.pwclientrc</code> file in your home directory.</li>
+</ul>
+
+<p>You can create your own <code>.pwclientrc</code> file. Each
+<a href="{% url patchwork.views.projects %}">patchwork project</a>
+provides a sample linked from the 'project info' page.</p>
+
+{% endblock %}
diff --git a/templates/patchwork/project.html b/templates/patchwork/project.html
index f29540c..49ceb57 100644
--- a/templates/patchwork/project.html
+++ b/templates/patchwork/project.html
@@ -28,5 +28,12 @@
<td>{{n_patches}} (+ {{n_archived_patches}} archived)</td>
</tr>
</table>
+
+{% if settings.ENABLE_XMLRPC %}
+<p>Sample <a href="{% url patchwork.views.help "pwclient/" %}">patchwork
+client</a> configuration for this project: <a
+href="{% url patchwork.views.pwclientrc project.linkname %}"
+>.pwclientrc</a>.</p>
+{% endif %}
{% endblock %}
diff --git a/templates/patchwork/pwclient.py b/templates/patchwork/pwclient.py
new file mode 120000
index 0000000..c196eb3
--- /dev/null
+++ b/templates/patchwork/pwclient.py
@@ -0,0 +1 @@
+../../apps/patchwork/bin/pwclient.py \ No newline at end of file
diff --git a/templates/patchwork/pwclientrc b/templates/patchwork/pwclientrc
index d7c1c32..7aaf346 100644
--- a/templates/patchwork/pwclientrc
+++ b/templates/patchwork/pwclientrc
@@ -6,8 +6,10 @@
[base]
url: http://{{site.domain}}{% url django_xmlrpc.views.handle_xmlrpc %}
project: {{ project.linkname }}
+{% comment %}
{% if user.is_authenticated %}
[auth]
user: {{ user.username }}
password: <add your patchwork password here>
{% endif %}
+{% endcomment %}