[albatross-users] <al-tree> Initialisation

Dave Cole djc at object-craft.com.au
Sat Dec 21 23:29:23 EST 2002


I forgot to add something...

Tree data which is lazy loaded should be placed into the session else
you are likely to get all sorts of confusing problems.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
from albatross import LazyTreeIterator

def restore_tree(ctx):
    # Create the tree root and fetch the previous state of the tree.
    ctx.locals.root = create_tree_root(ctx)
    ctx.add_session_vars('root')

    :
    :
    
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- Dave

-- 
http://www.object-craft.com.au




More information about the Albatross-users mailing list