Why not recreate form again?
if form.vars.field1==None
dictionary == db.().select
form=
return dict(form=form)
?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/iss
Hello.
This is just a simple example, my actual model is more complex, but I think
I can explain the main idea.
Model:
db.define_table('users',
Field('name', 'string'))
db.define_table('contacts',
Field('user', db.users),
Field('phone', 'string'
Hello, there is a little trouble.
When I hide some fields from output by db.table.field.readable=False,
and are not rendered (as it must), but in for this
field is still rendered so it breaks the layout.
пятница, 8 ноября 2013 г., 1:01:48 UTC+4 пользователь Anthony написал:
>
> In trunk, SQ
Hello.
So, i just decided to use web2py for migration from drupal.
I found answers to most of my questions while googling. Besides that.
For example, I have application "app".
controller "main.py".
Inside of it:
def index():
try:
code = str(request.args(0))
except:
c
4 matches
Mail list logo