>
> Be careful that you can no longer change attributes everywhere you like as 
> in:
>
> db.tablename.fieldname.readable = False
>
> In web2py this is ok. In web3py this is not safe. Attributes must be 
> global. The state of fixtures must not be modified inside actions.
>

is it mean in controller not safe, but in on_define, safe or not ?
*e.g.*
*controller.py*
db.tablename.fieldname.readable = False # not safe in web3py
def test():
    db.tablename.fieldname.readable = False # not safe in web3py

*models.py*
def on_define_tablename(table): 
    table.fieldname.readable = False # safe or not ?
db.define_table('tablename', 
    Field('fieldname'), 
    on_define = on_define_tablename)

best regards,
stifan


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/51987943-74b7-4fba-85be-6446e291874b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to