On Oct 28, 3:51 pm, osimons <[EMAIL PROTECTED]> wrote: > I'm quite sure they are instantiated as intended and get .config, .log > and .env attached. Could you provide specific code that do not work as > intended?
Easily. It will be duplicated from another thread here, but I guess it is ok. Extension point: http://trac.edgewall.org/attachment/ticket/781/icachechangesetlistener.diff Plugin that uses extension point (and doesn't get env attributes): http://python.pastebin.com/d2f6044ae Exception message from trac.log: File "/home/.december/trex/fartrac/plugins/mantis_tickets_query.py", line 50, in edit_changeset self.log.info("Lookup bug title at Mantis webpage %s" % url) AttributeError: 'MantisChangesetQuery' object has no attribute 'log' I added a dir(self) exception output for debug and it shows that there are no log, env, config attributes attached to component instance. 2008-10-28 07:49:11,818 Trac[__init__] INFO: Trying to sync revision [2034] 2008-10-28 07:49:11,822 Trac[__init__] ERROR: ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__metaclass__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', '_implements', 'compmgr', 'edit_changeset', 'implements', 'mantis_re', 'mantis_re_title'] Traceback (most recent call last): File "/home/.december/trex/inst/lib/python2.4/site-packages/ Trac-0.11.1-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/home/.december/trex/inst/lib/python2.4/site-packages/ Trac-0.11.1-py2.4.egg/trac/web/main.py", line 173, in dispatch chosen_handler) File "/home/.december/trex/inst/lib/python2.4/site-packages/ Trac-0.11.1-py2.4.egg/trac/web/main.py", line 286, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "/home/.december/trex/inst/lib/python2.4/site-packages/ Trac-0.11.1-py2.4.egg/trac/versioncontrol/api.py", line 86, in pre_process_request self.get_repository(req.authname).sync() File "/home/trex/inst/lib/python2.4/site-packages/Trac-0.11.1- py2.4.egg/trac/versioncontrol/cache.py", line 205, in sync cset = self.cache_mgr.check_changeset(cset) File "/home/trex/inst/lib/python2.4/site-packages/Trac-0.11.1- py2.4.egg/trac/versioncontrol/cache.py", line 54, in check_changeset res = observer.edit_changeset(cset) File "/home/.december/trex/fartrac/plugins/mantis_tickets_query.py", line 39, in edit_changeset raise Exception(dir(self)) Exception: ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__metaclass__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', '_implements', 'compmgr', 'edit_changeset', 'implements', 'mantis_re', 'mantis_re_title'] -- WBR, anatoly --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
