>
> Perhaps appadmin could simply get an additional checkbox to toggle
> ignore_common_filters for each query/action? It'd be actually quite
> useful to be able to work on both levels of abstractions,
> database-as-seen-by-app and database-as-is.
>
I believe appadmin does ignore_common_filters, but that's not what prevents
the deletion.
I don't think appadmin should do a complete deletion by default (just
because you're in appadmin doesn't mean you want deletion behavior
different from the normal app operation), but it would be nice to have that
as an option (maybe open a Google Code issue requesting this).
For now, you could include some conditional code in a model file to change
the behavior in appadmin:
if not request.controller == 'appadmin':
auth.enable_record_versioning(db)
Of course, that completely disables record versioning while in appadmin.
You could instead get more sophisticated and just change the is_active
behavior by iterating over the tables and calling _enable_record_versioning
with the appropriate arguments.
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.