[albatross-users] Exception: set_page() passing wrong number of parameters to page_enter()?

Andrew McNamara andrewm at object-craft.com.au
Tue May 20 10:07:18 EST 2003


>> def page_process(ctx):
>>    #ctx.set_page('myaccount')
>>    pass
>
>I seem to remember having a similar problem when I was trying to use 
>RandomModularSessionFileApp.  It's been a while, but I think instead of 
>using "ctx.set_page()" you should be using "ctx.redirect()".  I'm sure 
>you will get a more detailed explanation from one of the experts, but in 
>the meantime give the redirect a try!

I think Dan's right. There's a bug in RandomPageModuleMixin.page_enter,
but ctx.redirect() is the only way to move around a RandomePage app
currently.

RandomPageModuleMixin.page_enter should be expecting a third argument, the
tulple of optional args to set_page.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list