[EMAIL PROTECTED] wrote: > My problem is an error is returned once I run the module. Python says > that ComponentManager is not defined. > > Here's the code: > > ------------------------------------------------- > > from trac.core import *
The ComponentManager is not specified in the __all__ module variable. This means that it is not imported when you import *. You will need to explicitly import the ComponentManager from trac.core, so: from trac.core import ComponentManager Now, if you are trying to create a plugin to trac, you will not need to create a ComponentManager as the environment is the ComponentManager. Of course, if you're using the component architecture outside of trac, then you'll need to implement your own ComponentManager -John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
