[Python-apps-team] Bug#562963: Trac: wrong plugin names

anatoly techtonik techtonik at gmail.com
Sun Jan 3 18:26:13 UTC 2010


Here is a patch prototype for 0.11-dev branch. It won't work from the
start probably, because I don't have time to test it right now and
there is no guarantee I'll return to it next week. But it's better
than nothing.
-- 
anatoly t.



On Sun, Jan 3, 2010 at 2:41 PM, anatoly techtonik <techtonik at gmail.com> wrote:
> Hello, Martin
>
> Unfortunately. Trac plugins should be packaged as EGGs, because Trac
> uses information from EGG distribution to display in web-admin. So far
> I haven't found a way to get this information for imported module
> installed in a plain directory, i.e. the one that doesn't end with
> .egg like.
>
> For example WikiNotification plugin when installed with setuptools,
> ends into tracwikinotification-0.2.1-py2.6.egg directory with EGG-INFO
> and WikiBotification subdirs. First subdir is used by Trac to display
> plugin info (via pkg_resources from setuptools) and the second
> contains with actual module code. The path is detected by path to
> files of imported module.
>
> In Debian there is Account Manager for example. It is imported from
> /usr/share/pyshared/acct_mgr and actual meta information is in
> /usr/share/pyshared/TracAccountManager-0.2.1dev.egg-info  So far I
> haven't found a way how to link these.
>
> I'll keep you updated.
> --
> anatoly t.
>
>
>
> On Sat, Jan 2, 2010 at 4:38 PM, W. Martin Borgert <debacle at debian.org> wrote:
>> Quoting "anatoly techtonik" <techtonik at gmail.com>:
>>>
>>> Yep. I know that. It is because plugin system in original WebAdmin
>>> plugin was designed with eggs in mind (whatever that means). I already
>>> have a patch to fix that, but I want to be sure it covers all cases.
>>
>> Would you mind to send the patch to 562963 at bugs.debian.org, so
>> that we can look at it? Even if your solution does not cover all
>> cases or has other issues, you are at least one step ahead :~)
>>
>> The bug report is visible here: http://bugs.debian.org/562963
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_module_path.diff
Type: application/octet-stream
Size: 5114 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20100103/87292129/attachment.obj>


More information about the Python-apps-team mailing list