[albatross-users] Wiki example and related extension: iterate over ctx/session
Sheila King
sheila at thinkspot.net
Tue Jul 8 14:01:52 EST 2003
--On Monday, July 07, 2003 6:20 PM +1000 Gregory Bond <gnb at itga.com.au>
wrote:
> Perhaps the SessionBase ctor could do:
> self.locals.__session__ = self.__vars
> so your templates could do
> <ul><al-for iter="k" expr="__session__.keys()">
> <li><al-value expr="k.value()"/></li>
> </al-for></ul>
"ctor" ???
Do you mean the "creator" method? (i.e. __init__ for the class)
I wonder what I would break in my current app by upgrading to the 1.10
prerelease right now. I do like David Cole's "kludge" a bit better, since
it doesn't require me to override or change code in the basic albatross
code. <shrug>
--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org
More information about the Albatross-users
mailing list