Commit e1bf49e1 authored by 's avatar

- use ApplicationDefaultPermissions directly from new location

parent 9b1c5b1b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
"""Permissions """Permissions
...@@ -121,7 +121,6 @@ _registerdPermission=_registeredPermissions.has_key ...@@ -121,7 +121,6 @@ _registerdPermission=_registeredPermissions.has_key
def registerPermissions(permissions, defaultDefault=('Manager',)): def registerPermissions(permissions, defaultDefault=('Manager',)):
"""Register an __ac_permissions__ sequence. """Register an __ac_permissions__ sequence.
""" """
from App.class_init import ApplicationDefaultPermissions
import Products import Products
for setting in permissions: for setting in permissions:
if _registerdPermission(setting[0]): continue if _registerdPermission(setting[0]): continue
...@@ -140,5 +139,5 @@ def registerPermissions(permissions, defaultDefault=('Manager',)): ...@@ -140,5 +139,5 @@ def registerPermissions(permissions, defaultDefault=('Manager',)):
mangled, default) mangled, default)
class ApplicationDefaultPermissions: class ApplicationDefaultPermissions:
_View_Permission='Manager', 'Anonymous' _View_Permission = ('Manager', 'Anonymous')
_Access_contents_information_Permission='Manager', 'Anonymous' _Access_contents_information_Permission = ('Manager', 'Anonymous')
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