[web2py] Re: FORM Generation Code.

2011-04-27 Thread Ab...
ot; >     return dict(form=Auth()) > > -- > Bruno Rocha > [ About me:http://zerp.ly/rochacbruno] > > On Tue, Apr 26, 2011 at 1:05 AM, Ab... wrote: > > How do I pass labels to auth forms ? > >

[web2py] Re: FORM Generation Code.

2011-04-25 Thread Ab...
ove > all colons as follows: > >     form=SQLFORM(db.yourtable) >     for label in form.elements('label'): >         label.components = label.components[-2] > > Anthony > > On Monday, April 25, 2011 10:06:41 AM UTC-4, rochacbruno wrote: > > On Mon, Apr 25, 20

Re: [web2py] FORM Generation Code.

2011-04-24 Thread Ab...
If there's a workaround other than modifying the core file, I'd like to know as I'm also facing the same issue.

[web2py] Set a flag instead of deleting records permanently

2011-04-06 Thread Ab...
Hi, In my application, I have a user table which to which is referenced by many other tables. Collectively they all contain information about the user. In the account settings, I want to let the user have an option to delete his account. However I want to retain the records and just prevent the us

[web2py] Re: SyntaxError: setting key 'change_password_onvalidation' does not exist

2011-04-06 Thread Ab...
Thanks Massimo. Until then, I solved my problem by directly using: form=auth.change_password(onvalidation=lambda form:passwordvalidation(form)) On Apr 4, 6:22 pm, Massimo Di Pierro wrote: > oops. Bug. fixed in trunk. > > On Apr 4, 3:58 am, "Ab..." wrote: > > > &g

[web2py] SyntaxError: setting key 'change_password_onvalidation' does not exist

2011-04-04 Thread Ab...
Hello, In an application that allows password column in auth_user table to be null as it uses facebook login also, I have a change password auth form where I'd like to force validation that new password can not be blank.. Based on http://web2py.com/book/default/chapter/08#Authentication a few lin

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-03-03 Thread Ab...
Sorry, this is my def changePassword(): def changePassword(): change_password = auth.change_password() if change_password.accepts(request.vars, session, onvalidation=validateChangePassword): response.flash = "Password updated" return change_password

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-03-03 Thread Ab...
Okay, I modified my code as follows: # # Controller: ACCOUNT # def changePassword(): change_password = auth.change_password() if change_password.accepts(request.vars, session, onvalidation=validateChangePassword): response.flash = "Password

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-02-25 Thread Ab...
Carlos, neither of them are working. There is no redirect so session.flash won't work. I'm using AJAX to submit n get response for this form. I confirmed that response.flash indeed has the "Password Updated" value by printing it to the console but I just don't see it in the browser. What might I b

[web2py] LOAD auth.change_password form and over-ride the Redirect on success

2011-02-23 Thread Ab...
Hello, I am trying to create a user account dashboard where there will be multiple forms, for example, one to change the name and email, another to change the password and yet another for an account termination request. While everything else is working just fine, the auth.change_password form is no

[web2py:30891] Re: Multiple file upload

2009-09-13 Thread ab
different names instead of > calling all of them images? > > On Sep 13, 2:21 am, ab wrote: > > > Hi > > >   I'm trying to implement multiple file upload using jQuery Multiple > > File Upload Pluginhttp://www.fyneworks.com/jquery/multiple-file-upload/ > > &g

[web2py:30869] Multiple file upload

2009-09-13 Thread ab
Hi I'm trying to implement multiple file upload using jQuery Multiple File Upload Plugin http://www.fyneworks.com/jquery/multiple-file-upload/ Here is my form: If user uplads one file I can access filename and date, because it's in FieldStorage. print request.vars The pro

[web2py:30649] Re: Database administration - db upload field

2009-09-10 Thread ab
I don't know uploaded file name. There is only stream of bytes to save in blob field. On Sep 10, 9:27 pm, mdipierro wrote: > It depends on how you send the file. Can you send me an example? > > On Sep 10, 2:19 pm, ab wrote: > > > Thanks. Working fine. > > > I ha

[web2py:30646] Re: Database administration - db upload field

2009-09-10 Thread ab
calucate file field value as above? On Sep 10, 7:25 pm, mdipierro wrote: > Please try > >   Field('file_data','blob',default='')) > > On Sep 10, 10:57 am, ab wrote: > > > Hi > > >   I found issue in database administration module and bl

[web2py:30626] Database administration - db upload field

2009-09-10 Thread ab
Hi I found issue in database administration module and blob field for files storage When model is defined as below db.define_table('picture', Field('file','upload')) there is no problem with inserting new records using 'database administration' but when model is defined to store files

[web2py:19165] Re: IS_URL & error_message

2009-04-05 Thread ab
Thanks for fixing it. On Apr 5, 5:04 pm, mdipierro wrote: > You are right. There is a bug. It is fixed in trunk. > > On Apr 5, 2:50 am, ab wrote: > > > Hi > > > I have problem with custom message on url field validation. I set > > following rule in db.py >

[web2py:19144] IS_URL & error_message

2009-04-05 Thread ab
Hi I have problem with custom message on url field validation. I set following rule in db.py db.mytable.url.requires=IS_URL(error_message='Must be URL') but validation always returns 'invalid url!' message . Custom validation message working fine for other validators, like IS_NOT_EMPTY or IS_DA

[web2py:19142] IS_URL - error_message

2009-04-05 Thread ab
Hi I have problem with custom message on url field validation. I set following rule in db.py db.mytable.url.requires=IS_URL(error_message='Must be URL') but validation always returns 'invalid url!' message . Custom validation message working fine for other validators, like IS_NOT_EMPTY or IS_DA