I found with this code that the form created does not show in the
browser:
# controller
...
# there is only one table defined with one (plus the id) field called
myfield
db.mytable.myfield.compute = lambda r: str(r.myfield) + "more text"
# there is a record in db.mytable with id value 1 and myfield value
None
form = crud.read(db.mytable, 1)
...
# view code
{{ =form }}
I have read this thread
http://groups.google.com/group/web2py/browse_thread/thread/cd6191f9827a48d5/a367c0e5055bb676
and there had been a bugfix in trunk for a similar problem but I am
not sure if it applies for the code I am posting.
Is this the correct output?. Shouldn't be possible by default to view
myfield in the page?
Also tried to set myfield.readable and myfield.writable but no luck,
the field doesn't show anyway.
Web2py source 1.99.4
Firefox 3.6.24