db.define_table("tt",Field("f"),Field("gg"),Field.Virtual("ff", lambda r:r.tt.f))
def t():form = SQLFORM.grid()return dict(form=form)
def t():form = SQLFORM.grid(fields=[db.tt.ff])return dict(form=form)
194.118.190.134.2018-04-14.22-40-01.bc6da3b6-bd21-4dbe-8c78-f50c4a349fec
web2py™ | Version 2.15.4-stable+timestamp.2017.09.02.04.02.22 |
---|---|
Python | Python 2.7.12: /usr/local/bin/uwsgi (prefix: /usr/local) |
1. | Traceback (most recent call last): |
But with the field argument I get an error:def t():form = SQLFORM.grid(fields=[db.tt.ff])return dict(form=form)
def t():db.tt.f.readable = Falseform = SQLFORM.grid(db.tt)return dict(form=form)
194.118.190.134.2018-04-15.12-45-01.b4d5db05-e1e0-40b8-9233-47f2a2b37cca
web2py™ | Version 2.15.4-stable+timestamp.2017.09.02.04.02.22 |
---|---|
Python | Python 2.7.12: /usr/local/bin/uwsgi (prefix: /usr/local) |
1. |
15. |
Traceback (most recent call last): |
) |
File "/home/www-data/web2py/gluon/globals.py", line 414, in <lambda> |
() |
Anthony--
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 subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.