[web2py] auth.login problem - redirect on error

2010-05-24 Thread arnaud
Hi all, in my controller "site.py", i have this code for display a login form : def login() : return dict(form=auth.login(next=URL(a='helloworld',c='admin',f='index'))) When i try to login, if my login codes are correct, no problem. I am redirected to admin/index. But on error, I am redirect

[web2py] Upload Field in GAE

2010-06-08 Thread arnaud
Hello, i work with Web2Py on GAE. I try to make a db.insert with SQLFORM.factory method. def test(): form = SQLFORM.factory( Field('logo','upload')) if form.accepts(request.vars, session): new_domain = db.domain.insert(logo = request.vars.logo) response.flash='cool' el

[web2py] {{=form.custom.begin}} - How set an ID to form

2010-02-19 Thread arnaud
Hi, I'm newbie with python and Web2Py. My problem : I want customize my register form. This is my code #model auth_table = db.define_table(auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128,

[web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-22 Thread arnaud
oo. Remember that > > > > class SQLFORM(FORM): ... is a helper. > > > > On Feb 19, 11:03 am, Thadeus Burgess wrote: > > >> he wants a HTML CSS id on the form. > > > >> -Thadeus > > > >> On Fri, Feb 19, 2010 at 6:41 AM, mdipi

[web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-23 Thread arnaud
Thanks Massimo, but this code has no effect. No ID is set to form. SQLform is maybe the good solution. On 23 fév, 07:50, mdipierro wrote: > def register(): >    form=auth.register() >    form['_id'] = 'my_form_id' >    return dict(form=form) > > On Feb 22

[web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-24 Thread arnaud
t; > $ python web2py.py -S welcome -M>>> form=auth.register() > >>> form['_id'] = 'my_form_id' > >>> print form.xml() > > method="post"> > > perhaps I misunderstood the question and you expect something > differe

[web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-03-10 Thread arnaud
ink? > > > >>> On Feb 24, 9:38 am, DenesL wrote: > > > >>> > The problem is thatform.custom.beginis evaluated when the form is > > >>> > created. > > >>> > Changing '_id' after it has been created does not recalculate &g

[web2py] Admin - edit static files is broken

2010-10-02 Thread Arnaud Masselin
Hi all, i have deployed Web2py 1.83.2 on lighttpd production server. And i have a problem for edit css files in the admin interface. I raise a 404 error when I try to edit files. Files seems to be accessible because, for example, /static/ landing_a_default_new.css display content of my css file.

[web2py] Re: Admin - edit static files is broken

2010-10-03 Thread Arnaud Masselin
Hi MAssimo, on localhost, I use web2py server. I look in httpd config. Thanks. On 2 oct, 22:04, mdipierro wrote: > Could be a permission issue. When you open it from localhost do you > still use lighttpd or do you start web2py user your user account? > > On Oct 2, 10:58 am, Arn