Could someone with python knowledge lend me a helping hand with the autonav macro?
I am using 0.11 trunk and the autonav macro whichis marked as 0.11 compatible simply doesn't work in my installation. from the look at the code, which is linked from the trac macro bazaar page (<http://trac.edgewall.org/attachment/wiki/MacroBazaar/autonav- trac-0.11.py>) it seems to me (=> python noob) that it is not formatted correctly. (most of the block in the defrender_macro seems to be shift right and "def link(page):" appears to be wrong to me also) but even, if I change the above it still doesn't work, throwing an error (raise AttributeError(name) in web/api.py -> __getattr__) at the line: if formatter.context.resource != 'wiki': commenting this if statement give me the error at the next line, when accessing the db.cursor. cursor = formatter.db.cursor() so it looks like "formatter" is not, what it is supposed to be, it hasn't "context" nor has it "db". I'd like to learn to deal better with debugging the python scripts. I know about self.env.log.info, which gives me: <Request "POST u'/wiki/Weblinks'"> as value of formatter. how can I get more info on formatter? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
