I want to consult with you to figure out if my approach is correct or not. So ... I have a controller that return two types of information ... in dependence of whether the user is authenticated or not. Lets say if user is not authenticated, controller will return basic product description and if there is an authenticated user it will return full specifications.
Using "not_anonymous" predicate I would know for sure that there is a known user behind request but as I said before, the authentication of the user is not mandatory. I should do this checks: 1. request was made by an authenticated user? if yes return full specifications if not 2. there is no an authenticated user so return basic specifications. To achieve this I was thinking to combine some predicates in this way: Any(not_anonymous(), Not(not_anonymous())) execution of this predicated will respect order, preferring authenticated user over not authenticated? is this a good approach or there is something more clever? Thank you, Petru. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

