[albatross-users] Accessing the list of names in the context?
Tom Emerson
tree at basistech.com
Tue Nov 12 10:17:48 EST 2002
Gregory Bond writes:
> I'm trying to work out a way of debugging what's in the context at various
> points. I tried this:
> <al-macro name="showcontext">
> The current local context is:
> <ul>
> <al-for iter="ctxiter" expr="__dict__.keys()">
[...]
Instead of doing this, try using
<al-for iter="ctxiter" expr="locals().keys()">
to see the local variables in the context being executed. This has
worked for me in the past.
-tree
--
Tom Emerson Basis Technology Corp.
Software Architect http://www.basistech.com
"Beware the lollipop of mediocrity: lick it once and you suck forever"
More information about the Albatross-users
mailing list