Hi all !
I have two local Trac installations for testing purpose :
1- Trac=0.11 installed from Ubuntu 10.04
(<= is it enough to get the whole picture ?)
2- Trac=0.13dev installed in a virtual environment using
setuptools develop command . site-packages dir
is inherited from global installation
In the first case built-in Trac components (e.g. TicketSystem ) are
loaded , whereas in the later they are not .
The code looks like this (it is asumed that pkg should be the
top-level module in a package e.g. `trac` for Trac , `tracrpc` for
XmlRpcPlugin , ... ;)
{{{
#!py
from trac.loader import load_components
for pkg in ['trac'] :
try :
__import__(pkg)
except ImportError :
pass # Skip pkg. What a shame !
else :
mdl = sys.modules[pkg]
load_components(self.env, dirname(dirname(mdl.__file__)))
}}}
Q:
- Does anybody know why is this (i.e. built-in Trac components
not loaded) happening in installation #2 ?
- Is it some issue related to entry points ?
Thanks in advance !
--
Regards,
Olemis
Facebook => http://www.facebook.com/olemis
Twitter => http://www.twitter.com/olemislc (@olemislc)
Blog ES => http://simelo-es.blogspot.com
Blog EN => http://simelo-en.blogspot.com
Quora => http://www.quora.com/olemis
Youtube => http://youtube.com/user/greatsoftw
Get a signature like this. CLICK HERE.
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.