Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2173 (closed enhancement: wontfix)

Opened 10 years ago

Last modified 10 years ago

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:1 Changed 10 years ago by Gustavo

  • Status changed from new to assigned

comment:2 Changed 10 years ago by mramm

  • Milestone changed from 2.0b5 to 2.0b6

comment:3 Changed 10 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.

comment:4 Changed 10 years ago by chrisz

I've opened a new ticket #2205 for discussing the other options.

Note: See TracTickets for help on using tickets.