Re: newbie (coming from java) question
Gregory Bond <[email protected]> Wed, 02 Jun 2004 17:56:59 +1000
| Newsgroups | gmane.comp.web.albatross.general |
|---|---|
| Message-ID | <[email protected]> |
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')