I replaced the following validators from the table definition:

db.adres.bedrijf.writable=False
db.adres.bedrijf.readable=False


and changed the bedrijf field definition to read like:

SQLField('bedrijf', db.bedrijf, writable=False, readable=False,
default='', notnull=True),

The adres.bedrijf field does no longer display, but I have no idea why
this solved the problem. I thought validators worked on form level and
SQLField definitions on database level.


Solving this problem raised another problem: after updating or
deleting a record web2py redirects to: 
http://127.0.0.1:8000/mock/crud/data/tables.
Whereas I would like to return to the crud_address function, to show
the records in the database after update c.q delete.

Is it a good idea to write custom update functions, one for every
table?

The crud_address view displays the crud_create form in the top half of
the view and the records in the database in the bottom half of the
view, I wonder whether it is possible to replace the create form with
the update c.q. delete form when the user click. the link to a record
in the table. If so, how do I code that?


Kind regards,

Annet.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to