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
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
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
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:
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:
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:
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
-
..)}}
>
> 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
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
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
10 matches
Mail list logo