On Friday February 6, 2009 18:06:05 Christoph Zwerschke wrote: > > 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).
I know what it's for, I'm just a little concerned because that's not the standard way -- we'll end up with the standard way and the TurboGears way. But anyway it's not a big deal from my POV. > 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.) http://groups.google.com/group/turbogears- trunk/browse_thread/thread/bd9718156f0e9e25 http://groups.google.com/group/turbogears- trunk/browse_thread/thread/a0cf48cb5c7b977 http://www.mail-archive.com/[email protected]/msg00224.html -- Gustavo Narea <http://gustavonarea.net/>. Get rid of unethical constraints! Get freedomware: http://www.getgnulinux.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
