Commit b3f8bde7 authored by Ivan Tyagov's avatar Ivan Tyagov

Do not use hard coded permission names.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32941 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b96167a
......@@ -26,6 +26,7 @@
#
##############################################################################
from Products.ERP5Type import Permissions
class DocumentPreference:
"""
......@@ -37,49 +38,49 @@ class DocumentPreference:
'description' : 'Address of a server for converting docs (ip or domain)',
'type' : 'string',
'preference' : 1,
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : '' },
{ 'id' : 'preferred_ooodoc_server_port_number',
'description' : 'Port number of a server for converting docs',
'type' : 'int',
'preference' : 1,
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : '' },
{ 'id' : 'preferred_document_reference_regular_expression',
'description' : 'A regular expression to find and verify doc references',
'type' : 'string',
'preference' : 1,
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : '' },
{ 'id' : 'preferred_document_file_name_regular_expression',
'description' : 'A regular expression to parse file names',
'type' : 'string',
'preference' : 1,
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : '' },
{ 'id' : 'preferred_document_reference_method_id',
'description' : 'Function for parsing, finding and verifying doc reference',
'type' : 'string',
'preference' : 1,
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : '' },
{ 'id' : 'preferred_document_ingestion_email_notification',
'description' : 'None - always, "always", "problem (only if problem), "never"', # XXX-JPS this is not a description
'type' : 'selection',
'select_variable' : 'getPreferredDocumentIngestionEmailNotificationSelectionList',
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'preference' : 1,
'mode' : '' },
{ 'id' : 'preferred_document_email_ingestion_address',
'description' : 'Email ingestion address',
'type' : 'string',
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'preference' : 1,
'mode' : '' },
{ 'id' : 'preferred_document_classification',
'description' : 'Preffered classification policy for newly created documents',
'type' : 'string',
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'preference' : 1,
'mode' : '' },
# XXX-JPS. This is not a real property - it is somehow a hack.
......@@ -88,18 +89,18 @@ class DocumentPreference:
'description' : 'List of possible values for preferred_document_ingestion_email_notification',
'type' : 'tokens',
'default' : ['always','problem','never'],
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'mode' : 'w'},
{ 'id' : 'preferred_conversion_cache_factory',
'description' : 'Preferred Conversion Cache',
'type' : 'string',
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'preference' : 1,
'mode' : '' },
{ 'id' : 'preferred_synchronous_metadata_discovery',
'description' : 'Is preferred synchronous metadata discovery',
'type' : 'boolean',
'write_permission': 'Manage properties',
'write_permission': Permissions.ManageProperties,
'default' : False,
'preference' : 1,
'mode' : '' },
......
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