Right, so I can use the same predicates, but my main problem is, can
it handle....

@require(foo)
def mycontrollermethod(self):
  somestuff

an unauthenticated call to mycontrollermethod from a browser that
results in a redirect to the HTML login form
AND
an unauthenticated call to mycontrollermethod from a Flex/Flash
application that results in no redirection, but instead returns an
HTTP 401 so that the Flex/Flash app can deal with it?

It appeared to me that it could handle scenario #2 OK, but not both at
the same time...but I hope I'm wrong because that would be cool :) As
I said before, in the WSGI stack, I've already added middleware to
insert an flag in the environment that distinguishes one from the
other but I'm unclear how to translate that into the behavior I'm
looking for.

On Apr 27, 11:54 am, "Diez B. Roggisch" <[email protected]> wrote:
> On Tuesday 27 April 2010 17:00:16 robneville73 wrote:
>
> > Thanks Diez. I'll take a longer look at it but at first glance, it
> > looks really good. My only question would be how to make it play nice
> > with the existing repoze + TG integration so that HTML UI predicates
> > behave as normal....in my 1 minute glance at your code it looks as
> > though you're stripping-out the existing repoze stuff completely when
> > building up the WSGI app stack, no?
>
> > If my assessment is correct, any ideas how one might go down that
> > path?
>
> It's created in a way that it has the same predicates as repoze.what, so you
> should have no problems except from re-adjusting imports.
>
> Diez
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TurboGears" 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 
> athttp://groups.google.com/group/turbogears?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to