Jorge Godoy, el mi�rcoles 23 de noviembre a las 11:20 me escribiste:
> 
> Ksenia Marasanova <[EMAIL PROTECTED]> writes:
> 
> > Just a thought - maybe it's worth to extend require function with an
> > extra parameter for sqlbuilder expression?
> > e.g.
> > @identity.require(query=OR(User.q.group == groupA, User.q.group == groupB))
> 
> To use this we'd be force to:
> 
>         1. from turbogears.identity.model.somodel import User
> 
>         or
> 
>         2. from sqlobject.sqlbuilder import OR
>            (...)
>            @identity.require(query=OR(identity.model.somodel.User.q.group == 
> groupA, 
>                                       identity.model.somodel.User.q.group == 
> groupB))

I proposed[1] something similar but without depending on sqlobject /
sqlbuilder, because there could be providers that doesn't use SQLObject at
all.

I don't think is a great solution either, but it looks like this kind of
feature would be requested often, so it would be great if we can came up
with a nice solution =)

[1] 
http://groups.google.com/group/turbogears/browse_frm/thread/6f6912fa975f09b7/87550d45ab22ecd1

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
 .------------------------------------------------------------------------,
  \  GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05 /
   '--------------------------------------------------------------------'
Nos retiramos hasta la semana que viene reflexionando sobre nuestras
vidas: "Qué vida de mier'... Qué vida de mier'!"
        -- Sidharta Kiwi

Reply via email to