[web2py] table.requires question

2011-05-27 Thread Cesar Bustios
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

[web2py] Re: table.requires question

2011-05-27 Thread Cesar Bustios
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

[web2py] About auth.requires_membership()

2011-06-06 Thread Cesar Bustios
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

[web2py] Re: About auth.requires_membership()

2011-06-06 Thread Cesar Bustios
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

[web2py] Re: About auth.requires_membership()

2011-06-06 Thread Cesar Bustios
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

[web2py] Re: About auth.requires_membership()

2011-06-06 Thread Cesar Bustios
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: > > > > > >