hello web2py users,

I have been playing with web2py & python for a few months now ... I am 
proud of myself with what I have been able to accomplished so far and so 
quickly !
but I am still learning !... 

There have been several post regarding the following issue !!   and I 
thought I had figured it out after reading and searching through them ...!

but .. I was obviously mistaken !

in the controller, multiple actions are exposed with the user() action .. 
it is default ! with the user.html in the view ... OK ! understood !

like : 
http://.../[app]/default/user/register
http://.../[app]/default/user/login
http://.../[app]/default/user/logout
http://.../[app]/default/user/profile
etc.

to name just these few...

what if we want to customize the default/user/register ? or any other 
user() actions like profile or else !!

in my controller I created a def register() with its corresponding 
register.html in the view .. 
I have tried different scenarios, based on the various replies on various 
past and similar posts about this same issue ... but ... It always goes to 
the default web2py user/register

My registration scenario involves 2 tables with various fields, ( a form 
wizard ) ...  it works perfectly by itself on a separate or standalone link 
for test ..
 but I cannot have i toverides  the action of user/register from the 
controller  or simply have my "def  register() :" take the place of the 
default web2py user/register one !

I even tried to put it within  the def user() :  statement in the default 
controller : .... Nope ! not executing !
in the user html view either, because it does recognized certain parameters 
that I passed along in the default.py controller "def register() :"

I was thinking ! .. this is a redundant issue .. it comes back several 
times ... it should be better addressed either with a slice .. or in the 
book !

NB. The same thing with previewing a resized thumbnail image before 
committing it to the database table on an upload image field !
        -- this last issue is giving me headaches with JS ! .. I just let 
it go for now ( put it on ice ) so I can move on !!

thank you

Don

-- 



Reply via email to