#2205: Provide a simple way to evaluate repoze.what predicates
------------------------------------------------+---------------------------
 Reporter:  chrisz                              |        Owner:  Gustavo 
     Type:  enhancement                         |       Status:  assigned
 Priority:  highest                             |    Milestone:  2.0b6   
Component:  TurboGears                          |      Version:  trunk   
 Severity:  major                               |   Resolution:          
 Keywords:  repoze.what predicates permissions  |  
------------------------------------------------+---------------------------
Comment (by Gustavo):

 Replying to [comment:14 Gustavo]:
 > OK, I got the function implemented in repoze.what-pylons (it's called
 booleanize_predicates()).
 >
 > I suggest that such a function is called in the user's code, instead of
 having TG calling it automatically, to give make clear what is going on.
 What do you think about it?

 This is, in a place like '''{app}.config.app_cfg''', we could have:
 {{{
 # (...)
 from repoze.what.plugins.pylonshq.utils import booleanize_predicates
 # (...)
 booleanize_predicates()
 # (...)
 }}}

 I think it's important to make it clear that there's no magic behind.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2205#comment:15>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to