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 ?
>
>
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
If there's a workaround other than modifying the core file, I'd like to know
as I'm also facing the same issue.
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
18 matches
Mail list logo