Ticket #2173 (closed enhancement: wontfix)
Create a function that evaluates repoze.what predicates and *simply* returns a boolean
| Reported by: | Gustavo | Owned by: | Gustavo |
|---|---|---|---|
| Priority: | high | Milestone: | 2.0b6 |
| Component: | TurboGears | Version: | trunk |
| Severity: | major | Keywords: | repoze.what |
| Cc: |
Description
We need a function that evaluates repoze.what predicates and *simply* returns a boolean if it's met or not. For example:
display_message = evaluate(has_permission('manage'))
It should be a proxy to a function defined in repoze.what itself (which will require the environ to be passed as a parameter).
Change History
comment:3 Changed 3 years ago by Gustavo
- Status changed from assigned to closed
- Resolution set to wontfix
This feature has been ruled out and there are other [better] options discussed on this thread: http://groups.google.com/group/turbogears-trunk/browse_thread/thread/52572857f68c1bd7
But FWIW, repoze.what already has said function.
Note: See
TracTickets for help on using
tickets.