Table definitions by themselves don't generate CRUD functionality. The only 
place you get automatic CRUD functionality without explicitly creating it 
is appadmin. However, appadmin is only accessible by someone who also has 
access to the admin app, so the exposure should be fairly limited there 
(and if you wrote some code that prevented access to a particular table in 
appadmin, any user with appadmin access could simply go into admin to 
change that code, unless you remove the admin app).

Anyway, appadmin is just a controller in your app, so you are free to 
remove it or alter it, and you can easily control what it can access via 
code in your models. For example, you could do:

if request.controller != 'appadmin':
    db.define_table('mytable', ...)

The above will prevent the table from being defined whenever appadmin is 
the requested controller, so it won't appear in appadmin.

Anthony

On Sunday, August 2, 2015 at 12:18:11 PM UTC-4, 
luis.vallada...@metamaxzone.com wrote:
>
> Hello!
>
> I'm trying to define a table within web2py (with audit purpose) that 
> doesnt generate any crud in any site of the website (including the 
> appadmin) because this table only have to be modified using triggers inside 
> the database but i cant find any proper option inside DAL documentation to 
> do this
>
> Any help would be great!
>

-- 
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/d/optout.

Reply via email to