Gustavo Narea schrieb: > I don't like too much the idea of having "the TurboGears way of evaluating > predicates" using __nonzero__, although I don't have strong feelings against > it. What do others think?
I think the idea is not that far off as it looks at a first glance. It's actually exactly what __nonzero__ is intended for (the name is a bit misleading, it has been renamend to __bool__ in Py 3.0). Btw, I just noticed that there once was a tgrepozewho package which uses the same idea (see the definition of IdentityPredicateHelper mix-in in http://svn.turbogears.org/projects/tgrepozewho/trunk/tgrepozewho/authorize.py). Maybe somebody can explain the history of this, and why this is not part of TG2 any more. I currently have the impression we are trying to solve something that had been solved before already. (Sorry, I did not follow the development of TG2 so closely.) -- Christoph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
