aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-03-19 15:29:01 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-03-19 23:20:46 +0100
commit1330abf722ff894e1a7f492718519a8cb5290a0b (patch)
treed8c523dda791bdaf9ae9d60b893a3fa47403657e
parent4234fffafacd0313559103d82fe5abf6dc42844c (diff)
downloadmediagoblin-1330abf722ff894e1a7f492718519a8cb5290a0b.tar.lz
mediagoblin-1330abf722ff894e1a7f492718519a8cb5290a0b.tar.xz
mediagoblin-1330abf722ff894e1a7f492718519a8cb5290a0b.zip
Add warning README.rst and fix pep8.
-rw-r--r--mediagoblin/plugins/piwigo/README.rst23
-rw-r--r--mediagoblin/plugins/piwigo/tools.py2
2 files changed, 24 insertions, 1 deletions
diff --git a/mediagoblin/plugins/piwigo/README.rst b/mediagoblin/plugins/piwigo/README.rst
new file mode 100644
index 00000000..0c71ffbc
--- /dev/null
+++ b/mediagoblin/plugins/piwigo/README.rst
@@ -0,0 +1,23 @@
+===================
+ piwigo api plugin
+===================
+
+.. danger::
+ This plugin does not work.
+ It might make your instance unstable or even insecure.
+ So do not use it, unless you want to help to develop it.
+
+.. warning::
+ You should not depend on this plugin in any way for now.
+ It might even go away without any notice.
+
+Okay, so if you still want to test this plugin,
+add the following to your mediagoblin_local.ini:
+
+.. code-block:: ini
+
+ [plugins]
+ [[mediagoblin.plugins.piwigo]]
+
+Then try to connect using some piwigo client.
+There should be some logging, that might help.
diff --git a/mediagoblin/plugins/piwigo/tools.py b/mediagoblin/plugins/piwigo/tools.py
index d2f7da1e..e53d94b9 100644
--- a/mediagoblin/plugins/piwigo/tools.py
+++ b/mediagoblin/plugins/piwigo/tools.py
@@ -41,7 +41,7 @@ class PwgNamedArray(list):
def _fill_element_dict(el, data, as_attr=()):
- for k,v in data.iteritems():
+ for k, v in data.iteritems():
if k in as_attr:
if not isinstance(v, basestring):
v = str(v)