From 6cff178b499fe10e3d26088806bd29167491403b Mon Sep 17 00:00:00 2001 From: benvdh Date: Fri, 12 Aug 2016 16:32:34 +0200 Subject: [PATCH] Update custom_resources.rst Added a note and example code to clarify how to deal with a single custom resource. You need to add a trailing comma there, else python will see it as a string and iterate over every character in the string, and turn every character into a resource path! --- docs/advanced/custom_resources.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/advanced/custom_resources.rst b/docs/advanced/custom_resources.rst index 53c3453..9a6bdee 100644 --- a/docs/advanced/custom_resources.rst +++ b/docs/advanced/custom_resources.rst @@ -28,6 +28,13 @@ resources: #. foo.baz #. redmine.resources +.. note:: + If you only have a single custom resource, then you need to add a trailing comma after the path (else python will see it as string, rather than as a single item tupple) + +.. code-block:: python + + Redmine('https://redmine.url', custom_resource_paths=('foo.bar',)) + Existing Resources ------------------