I want to override the default auth.login(), so wherever auth.login is 
called my customised login form appears. Here are the customisations I've 
made to it in my view [which works]:

for label in form.elements('label'):
    if label[-1]!='Remember me (for 30 days)':
        label["_style"] = "display:none;"
email = {"email": "email address",}
pwd = {"password": "password"}for input in form.elements("input[type=text]"):
    input["_placeholder"] = email.get(input["_name"], "")for input in 
form.elements("input[type=password]"):
    input["_placeholder"] = pwd.get(input["_name"], "")
form.elements('input[type=submit]')[0]["_value"] = "Login"
form.elements('input[type=submit]')[0]["_class"] = "btn btn-large btn-primary"


How can I perform this override?

Thanks for all suggestions,

Alec Taylor

-- 



Reply via email to