Commit 70dcbffc authored by Ivan Tyagov's avatar Ivan Tyagov

Remove hard coded permission names.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31933 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ad9dccd
......@@ -25,6 +25,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from Products.ERP5Type import Permissions
class ExpressPreference:
"""
......@@ -38,63 +39,63 @@ class ExpressPreference:
'description' : 'The URL of a server which provides Witch Tool',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Manage portal',
'write_permission' : 'Manage portal',
'read_permission' : Permissions.ManagePortal,
'write_permission' : Permissions.ManagePortal,
'mode' : 'w' },
{ 'id' : 'preferred_witch_tool_server_root',
'description' : 'The root of a server which provides Witch Tool',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Manage portal',
'write_permission' : 'Manage portal',
'read_permission' : Permissions.ManagePortal,
'write_permission' : Permissions.ManagePortal,
'mode' : 'w' },
{ 'id' : 'preferred_express_subscription_status',
'description' : 'ERP5 Express subscription status',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Manage portal',
'write_permission' : 'Manage portal',
'read_permission' : Permissions.ManagePortal,
'write_permission' : Permissions.ManagePortal,
'mode' : 'w' },
{ 'id' : 'preferred_express_configuration_status',
'description' : 'ERP5 Express configuration status',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Manage portal',
'write_permission' : 'Manage portal',
'read_permission' : Permissions.ManagePortal,
'write_permission' : Permissions.ManagePortal,
'mode' : 'w' },
{ 'id' : 'preferred_express_user_id',
'description' : 'ERP5 Express subscription user id',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Modify portal content',
'write_permission' : 'Modify portal content',
'read_permission' : Permissions.ModifyPortalContent,
'write_permission' : Permissions.ModifyPortalContent,
'mode' : 'w' },
{ 'id' : 'preferred_express_password',
'description' : 'ERP5 Express subscription password',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Modify portal content',
'write_permission' : 'Modify portal content',
'read_permission' : Permissions.ModifyPortalContent,
'write_permission' : Permissions.ModifyPortalContent,
'mode' : 'w' },
{ 'id' : 'preferred_express_after_setup_script_id',
'description' : 'ERP5 Express after setup script id',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Modify portal content',
'write_permission' : 'Modify portal content',
'read_permission' : Permissions.ModifyPortalContent,
'write_permission' : Permissions.ModifyPortalContent,
'mode' : 'w' },
{ 'id' : 'preferred_express_erp5_uid',
'description' : 'ERP5 Express unique ID',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Modify portal content',
'write_permission' : 'Modify portal content',
'read_permission' : Permissions.ModifyPortalContent,
'write_permission' : Permissions.ModifyPortalContent,
'mode' : 'w' },
{ 'id' : 'preferred_express_client_uid',
'description' : 'ERP5 Express client unique ID',
'type' : 'string',
'preference' : 1,
'read_permission' : 'Modify portal content',
'write_permission' : 'Modify portal content',
'read_permission' : Permissions.ModifyPortalContent,
'write_permission' : Permissions.ModifyPortalContent,
'mode' : 'w' },
)
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