I have tried another model:
db.define_table('test',
Field('t1'),
Field('t2'),
)
db.test.c12 = Field.Virtual (lambda r: r.t1+r.t2)
And i get:
<type 'exceptions.AttributeError'> 'FieldVirtual' object has no attribute
'type'
Version
web2py™(2, 4, 1, 'alpha.2', datetime.datetime(2013, 2, 17, 11, 27, 22))
PythonPython 2.7.1
: H:\Python27\python.exe (prefix: H:\Python27)
What is wrong?
Regards, Martin
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.