[Trac] Re: Help with debugging a Trac macro?

2008-06-13 Thread Alec Thomas
Are you aware of http://trac-hacks.org/wiki/TocMacro ? 2008/6/13 Scott Bussinger [EMAIL PROTECTED]: I'm using GMail and I can't read your code at all. Paste-binning it would be more useful. I had to look that one up (paste-binning) -- I'd never run into that before, but it's handy.

[Trac] Re: Help with debugging a Trac macro?

2008-06-13 Thread Scott Bussinger
Are you aware of http://trac-hacks.org/wiki/TocMacro? I have that macro loaded up, but I needed (well, wanted) different formatting than either the TOC() or TitleIndex() macros provide. In particular, I wanted the outline format and depth restrictions that TitleIndex(format=group,depth=2)

[Trac] Re: Help with debugging a Trac macro?

2008-06-13 Thread Scott Bussinger
OK, I got it figured out. Thanks for everyone's input! My problem wasn't in the recursion, it was that I didn't properly understand what the wiki.get_pages() method was going to return. What I had pictured in my mind wasn't what the routine actually did. Since I haven't figured out how to use

[Trac] Re: Help with debugging a Trac macro?

2008-06-13 Thread Chris Mulligan
ipython is the best you can get. It's an interactive python interface, and let's you run any python code one line at a time. For example here's a session showing how I might go about finding out what WikiPages returns. http://pastebin.com/m15d3997e On Fri, Jun 13, 2008 at 2:44 AM, Scott

[Trac] Re: Help with debugging a Trac macro?

2008-06-12 Thread Scott Bussinger
Could someone help me out and take a quick look at this? I'm tired of banging my head against the wall! Any hints at all? Even in the light of day, I'm not seeing the problem. Help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Trac] Re: Help with debugging a Trac macro?

2008-06-12 Thread Alec Thomas
2008/6/13 Scott Bussinger [EMAIL PROTECTED]: Could someone help me out and take a quick look at this? I'm tired of banging my head against the wall! Any hints at all? Even in the light of day, I'm not seeing the problem. Help! I'm using GMail and I can't read your code at all.

[Trac] Re: Help with debugging a Trac macro?

2008-06-12 Thread Scott Bussinger
I'm using GMail and I can't read your code at all. Paste-binning it would be more useful. I had to look that one up (paste-binning) -- I'd never run into that before, but it's handy. Anyway, here's a link to the full source file: http://pastebin.com/m7666910c The list_item() routine is the