> > I don't know that needing to define a per-request readable/writable is > such a common use-case - or else I don't fully understand what you are > alluding to... >
Sometimes you want to show/hide particular fields in a form, grid, etc. depending on some condition, so you set the readable and writable attributes dynamically in the controller. Also, default, represent, and compute attributes as well as validators sometimes use request specific data. > If so, I guess they would have to be re-set automatically by the DAL > object on each request, > It's not just a matter of resetting. If there is only a single fixed instance of an object that gets imported from a module, any change to an attribute during a request will persist (and affect other simultaneous requests). 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.