Add warning README.rst and fix pep8.
This commit is contained in:
parent
4234fffafa
commit
1330abf722
23
mediagoblin/plugins/piwigo/README.rst
Normal file
23
mediagoblin/plugins/piwigo/README.rst
Normal file
@ -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.
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user