you just do it normally but you have to make sure you tell auth:
auth = Auth(db)
db.define_table('auth_permission', ...)
It must have these fields:
Field('group_id', reference_table_group)
Field('name', default='default', length=512),
Field('table_name', length=512),
Field('record_id', 'integer', default=0)
Anyway, this feels so much of an instance of the XY
problem http://mywiki.wooledge.org/XyProblem what is really the problem you
are trying to solve?
On Saturday, 27 February 2016 04:08:30 UTC-6, prashant joshi wrote:
>
> hows it??
> give me any example
>
>
> On Sat, Feb 27, 2016 at 2:42 AM, Richard Vézina <
> [email protected]> wrote:
>
>> Yes why not?
>>
>> As long as you populate them correctly it all fine to do it...
>>
>> Richard
>>
>> On Fri, Feb 26, 2016 at 11:08 AM, prashant joshi <[email protected]>
>> wrote:
>>
>>> we can create permissin table in manually????
>>>
>>> --
>>> 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/d/optout.
>>>
>>
>> --
>> 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/d/optout.
>>
>
>
--
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/d/optout.