On Fri, Apr 5, 2019 at 4:22 PM Patty Cottrill <[email protected]> wrote:

> Can someone please explain this strange behavior with plugins.
>
> We are running Trac 1.2.3 on Ubuntu 16.04.
>
> I installed the account manager plugin in a single project by placing the
> .egg in the project’s plugin directory as per instructions below *For a
> single project*:
> *https://trac.edgewall.org/wiki/TracPlugins*
> <https://trac.edgewall.org/wiki/TracPlugins>
>
> Let’s say I have the following project:
> Project_a – placed TracAccountManager-0.5.0-py2.7.egg in this project’s
> plugin directory only
> Project_b
> Project_c
>
> I expected this plugin to only be available to Project_a, but it is being
> inherited by all other projects.
>
> The “About Trac” page of the other projects lists the plugins I installed
> for all projects under /usr/local/lib/python2.7/dist-packages, which I
> expect to see.
> What seems weird though, is that it also lists the plugin I installed for
> Project_a (/home/trac/Project_a/plugins/ TracAccountManager-0.5.0-py2.7.egg)
> The plugin is disabled, but it does allow me to enable it.
>
> Did I do something wrong?
> I do not use a global trac.ini, nor do I configure the other projects to
> inherit from /home/trac/Project_a/plugins.
>
> Please advise.
>
> Thanks
> -- Patty
>

Hi Patty, You did nothing wrong. The plugins that are loaded in the process
will be available for all Trac projects running under the same instance of
tracd. There are more details here:
https://trac.edgewall.org/wiki/TracPlugins#Isthewrongversionofthepluginloading

If you wish to isolate the projects and have different plugins for each,
you'll need to run multiple instances of tracd, one for each Trac project.

- Ryan

-- 
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