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