Commit 76a61b36 authored by Yoshinori Okuji's avatar Yoshinori Okuji

If NuxUserGroups cannot be imported, use _listAllowedRolesAndUsers in CMFCore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@645 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52958d8a
...@@ -126,8 +126,11 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool): ...@@ -126,8 +126,11 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool):
def _listAllowedRolesAndUsers(self, user): def _listAllowedRolesAndUsers(self, user):
from Products.NuxUserGroups.CatalogToolWithGroups import _getAllowedRolesAndUsers try:
return _getAllowedRolesAndUsers(user) from Products.NuxUserGroups.CatalogToolWithGroups import _getAllowedRolesAndUsers
return _getAllowedRolesAndUsers(user)
except ImportError:
return CMFCoreCatalogTool._listAllowedRolesAndUsers(self, user)
# Schema Management # Schema Management
def editColumn(self, column_id, sql_definition, method_id, default_value, REQUEST=None, RESPONSE=None): def editColumn(self, column_id, sql_definition, method_id, default_value, REQUEST=None, RESPONSE=None):
......
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