On Fri, Jun 12, 2009 at 5:24 AM, Florent Aide<[email protected]> wrote:
>
> On Thu, Jun 11, 2009 at 5:34 AM, Jorge Vargas<[email protected]> wrote:
>
>>> But we should also take care to have some pypi release one day or
>>> another because only tg1 is installable from the pypi ATM.
>>>
>> YES! I have been bitching about this for ages, all we need is the .egg
>> in there!
>>
>> As for tg2.1 features I'll like to include a TG1 identity-like layer
>> on top of r.w*
>
> Could you elaborate about the identity-like layer? (I have my ideas
> but I'm interested to hear it from others)
>
I actually got two ideas. One is really simply which will be to redo
http://docs.turbogears.org/1.0/UsingIdentity#identity-current-interface

the other is more elaborate and involves making predicates a lot
simpler. In fact yesterday I started working on something like this (I
kind of hack it on top of repoze.what, but I couldn't test it as well
all tests failed, cause I needed dev versions of a lot of stuff :) .
My goal is to make the "booleanize" stuff work by default. Where teh
predicate will return true/false if it's called from allow_only or
@protect (sorry if that's not the name of the decorator) then

result = predicate()
if not result:
    raise NotAuthorized

which means the predicate is simply a function, it doesn't even needs
to be tied to the SA stuff.

> Florent.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to