On Thursday, May 4, 2017 at 3:27:27 AM UTC-7, toto200891 wrote:
>
> ImportError: No module named support.supportdeskpolicy , it gave me this 
> error
>
> I dont understand what to write in that section in single plugin approach 
> setup file, Please guide me with this,
>
> Here is my setup.py I used
> from setuptools import find_packages, setup
>
> setup(
>     name='SupportDeskPolicy', version='1.0',
>     packages=find_packages(exclude=['*.tests*']),
>     entry_points = {
>         'trac.plugins': [
>             'supportdeskpolicy = support.supportdeskpolicy',
>         ],
>     },
> )
>

Simply copy the code (1) and paste it into a file in your environment 
plugins directory, with any name and extension .py, say 
SupportDeskPolicy.py.

Per (2), you don't need to enable the plugin in your [components] section 
if you put it in the environment plugins directory.

Restart your web server and the plugin should be enabled. If not, please 
check the logs and share what you find.

Which version of Trac are you running?

- Ryan

(1) https://trac.edgewall.org/wiki/CookBook/PermissionPolicies#SupportDeskPolicy
(2) https://trac.edgewall.org/wiki/TracPlugins#Plugindiscovery

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to