[web2py] How to show just entered value in the same form after self-submitting?

2014-08-17 Thread Кирилл Шаталаев
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

[web2py] one-to-many relations and form for crerate records

2014-08-16 Thread Кирилл Шаталаев
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'

[web2py] Re: Styling columns in SQLTABLE and the grid

2014-07-16 Thread Кирилл Шаталаев
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

[web2py] A newbee question about router(??)

2014-06-30 Thread Кирилл Шаталаев
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