Commit e1f3c7f5 authored by Aurel's avatar Aurel

use pname which is an alias in all version of AccessControl

parent 59df60ae
......@@ -23,7 +23,7 @@ from Acquisition import Implicit, aq_base
from Persistence import Persistent
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from DocumentTemplate.DT_Util import Eval
from AccessControl.Permission import getPermissionIdentifier
from AccessControl.Permission import pname
from AccessControl.Permissions import import_export_objects, \
manage_zcatalog_entries
from SQLCatalog import CatalogError
......@@ -1362,7 +1362,7 @@ InitializeClass(ZCatalog)
def p_name(name):
return getPermissionIdentifier(name)
return pname(name)
def absattr(attr):
if callable(attr): return attr()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment