Hi,
I added the following lines of code to the formstyle definition:
# For password fields, which are wrapped in a CAT object.
if isinstance(controls, CAT) and isinstance(controls[0], INPUT):
controls[0].add_class('form-control')
In my case that solved the issue.
Regards,
Annet
--
Resou
Bootstrap modals have header, body and footer sections. I haven't figured
this out, yet, but is there a way to get formstyle='bootstrap' to send the
submit button to the footer, the form contents to the body and maybe a
title to the header sections? Obviously, this can be done with custom
forms
Hi,
I am having the same issue pointed here by Ricardo Pedroso:
https://groups.google.com/forum/#!searchin/web2py/verify$20password$20style/web2py/ZzRYjegMHw8/8iHikvlR23sJ
See, I use this:
auth.settings.formstyle='bootstrap3'
for making the register form in bootstrap style but verify password
Thanks, not only does it work, but now I also understand exactly why it
works:) Thanks again!
W dniu niedziela, 25 maja 2014 15:45:02 UTC+2 użytkownik Anthony napisał:
>
> You are changing the value in the Row object but not updating the actual
> record in the database. To do so, after updating
I should note that you can also simply write your own Python script to
start web2py and launch a browser.
On Sunday, May 25, 2014 9:57:02 AM UTC-4, Anthony wrote:
>
> web2py uses the Python webbrowser module from the standard library, but
> simply calls the default browser. In principle, I suppo
web2py uses the Python webbrowser module from the standard library, but
simply calls the default browser. In principle, I suppose a specific
browser can be called (the webbrowser module does allow this), but web2py
doesn't provide an option for that. If you'd like, you could submit a patch.
Ant
You are changing the value in the Row object but not updating the actual
record in the database. To do so, after updating the Row, you can call
user.update_record(). Or if you only need to update the database (but not
the Row), you can just do user.update_record(registration_key='').
Actually,
I set my app to require registration approval and cannot set the
registration_key programmatically. I can set it through appadmin interface.
Here is my code:
@auth.requires_membership('librarian')
def show_reader():
user = db.auth_user(request.args(0, cast=int))
form=FORM(INPUT(_type='sub
It did the trick, thanks Anthony!
By the way the difficult part for me was building the list containing all
ids from multiple tables.
Assuming ids are unique across tables (which was my case), this function
can help build the IS_IN_SET validator :
def mix(list_long, list_short):
i,j = iter(
9 matches
Mail list logo