New submission from Gustavo Narea <>:

repoze.what-pylons must provide a function that receives the path to a 
controller and returns a
boolean depending on whether the user is allowed to visit that controller 
(evaluating the
controller-wide predicates (if any) and the predicate specific to the action 
via the @require
decorator). Example with Genshi: 
  <a py:if="can_access('/admin/')" href="/admin/">
      This is a link for admins

 The can_access() function above represents the function in question.

assignedto: Gustavo
messages: 143
nosy: Gustavo
priority: feature
status: in-progress
title: Create a function that checks if the user is allowed to visit a given URL
topic: repoze.what

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to