[albatross-users] newbie (coming from java) question
Gregory Bond
gnb at itga.com.au
Wed Jun 2 17:56:59 EST 2004
Oh OK I think I see the problem.
The _first time_ you get to the ListPage object, the call seq will be
prevpage.page_exit()
ListPage.page_enter()
ListPage.page_display()
ctx.locals.doclist is not set because it is only set once someone hits the
"recherche" button and ListPager.page_process() is called.
the fix: make ListPage.page_enter() like this:
def page_enter(self, ctx):
self.locals.doclist = []
ctx.add_session_variables('doclist')
More information about the Albatross-users
mailing list