[web2py] Confirm Password in Customized Registration Form

2016-04-09 Thread Jerry Liu
Hello, everyone I want to customize my user registration page a little bit, and I am using the code like below: {{=form.custom.begin}} {{=form.custom.widget.username}} ... {{=form.custom.submit}} {{=form.custom.end}} I couldn't figure out what fieldname I should put for the "confirm

[web2py] sidebar

2016-03-27 Thread Jerry Liu
Hello, Is there a way I can customize my sidebar at one place and use it on all views? Now I have my sidebar customized and displayed on index.html, but how can I let all other my views include the same sidebar? Any help? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] auth_user table

2016-03-25 Thread Jerry Liu
Hello, all I found something really weird happened to my auth_user table. whenever I try to add a new user to auth_user table, it gives me a default value 38 for the *Created By* field. So I keep getting IntegrityError: *FOREIGN KEY constraint failed *because there is not such a user with id

[web2py] Re: Auth_user add username field

2016-03-23 Thread Jerry Liu
ything is > handled by the line: > return dict(form=auth()) > > in the default controller (in combination with the default/user.html). > > The line in db.py just tells auth whether to use a username or email. > > On Wednesday, March 23, 2016 at 8:16:42 PM UTC-4, Jerry Liu wrote:

[web2py] Re: Auth_user add username field

2016-03-23 Thread Jerry Liu
change username=True in db.py, all the > web2py components (e.g., log in form, auth_user table, log in menu, etc.) > will now support username ... > > auth.define_tables(username=True, signature=True) > > > > On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:

[web2py] Auth_user add username field

2016-03-23 Thread Jerry Liu
Hello, all I want to add a *username* field to auth_user table. I figured out I can use the following line of code to do so, but how can I use *username *instead of *email *in login and registration process? auth.settings.extra_fields[auth.settings.table_user_name] = [ Field] -- Resources:

[web2py] XML object

2016-03-20 Thread Jerry Liu
Hi, all I want to use XML object to stop html from being escaped. But the object seems not working on iframe tag. I override it like this: XML(text, sanitize=True, permitted_tags=['iframe', ...], allowed_attributes={'iframe':[...]}) -- Resources: - http://web2py.com -

Re: [web2py] Re: XML object

2016-03-19 Thread Jerry Liu
..)}} > > If so, what are you seeing in the final rendered HTML? > > Anthony > > > On Wednesday, March 16, 2016 at 3:12:04 PM UTC-4, Jerry Liu wrote: >> >> >> Hi, all >> >> I want to use XML object to stop html from being escaped. But the object

[web2py] Change confirm password label in registration form

2015-09-27 Thread Jerry Liu
How to change confirm password label in registration form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are

[web2py] Strip Spaces

2015-05-28 Thread Jerry Liu
Hello, all I want to update all of records of a table. Basically, what I want to update is just a string Field. I want to strip all spaces out of that Field. I have tried: db(db.table.id 0).update(field = db.table.field.strip()) But looks like Field object doesn't have a strip method. Any