Hello, i want to know i this behaviour is correct: Sometimes if I
define the .requires outside the table definition like:
db.define_table('mytable', ...)
db.mytable.myfield.requires = IS_IN_DB(..)
It just doesn't show the dropdown list in appadmin for reference
fields, but if I put the .requires
widget when requires inside a list.
>
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
>
> On Fri, May 27, 2011 at 8:53 PM, Cesar Bustios wrote:
>
>
>
>
>
>
>
> > Hello, i want to know i this behaviour is correct: Sometimes if I
> > define
Hi, is there a way to use this decorator with more than one group? For
example if i need function X to be use with groups A and B:
@auth.requires_membership('A', 'B')
def X(): ...
That doesn't work. How can I do that?
Thanks
It's not working :(
On Jun 6, 12:35 pm, Joaquin Orbe wrote:
> On Mon, Jun 6, 2011 at 2:03 PM, Cesar Bustios wrote:
> > Hi, is there a way to use this decorator with more than one group? For
> > example if i need function X to be use with groups A and B:
>
> > @aut
You were right Anthony. Thanks both of you
On Jun 6, 12:42 pm, Cesar Bustios wrote:
> Wait, but it worked this way:
>
> @auth.requires(auth.has_membership('A') or auth.has_membership('B'))
>
> Thank you,
>
> Cesar B.
>
> On Jun 6, 12:40 pm, C
Wait, but it worked this way:
@auth.requires(auth.has_membership('A') or auth.has_membership('B'))
Thank you,
Cesar B.
On Jun 6, 12:40 pm, Cesar Bustios wrote:
> It's not working :(
>
> On Jun 6, 12:35 pm, Joaquin Orbe wrote:
>
>
>
>
>
>
6 matches
Mail list logo