[albatross-users] context locals question

Brian Brown rbb at techgame.net
Wed Oct 23 02:17:16 EST 2002


Albatrossians,

   Let me first say that I absolutely love this toolkit... after hanging 
on with Zope for years, and seeing it get more and more complex and 
unmanageable, this is just what the doctor ordered.

Anyway... I am using a couple of variables that I am putting into 
ctx.locals, each one is a dictionary that I use for menu structures on 
the web site. One is a menu that stays the same and one is a menu that I 
want to be context dependent.  The problem seems to be that if I don't 
explicitly set this dict in every page module, it goes reverts back to 
the empty dict that I first initialized. What I have tried to do is 
create a get and set method at the context level, but this doesn't 
always seem to work. Is there some other place I should be trying to 
keep track of a value like this context dependent menu?

Thanks!

Brian




More information about the Albatross-users mailing list