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
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
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,
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
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
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
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
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.
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
9 matches
Mail list logo