Commit c8620b54 authored by Nicolas Delaby's avatar Nicolas Delaby

- Smooth transition to filename API

- Add new preference property to store Namespace of ingestion. 
  (Feature of new Tool, Portal Url Registry, comming soon...)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40965 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 59127010
...@@ -59,7 +59,8 @@ class DocumentPreference: ...@@ -59,7 +59,8 @@ class DocumentPreference:
'preference' : 1, 'preference' : 1,
'write_permission': Permissions.ManageProperties, 'write_permission': Permissions.ManageProperties,
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_file_name_regular_expression', { 'id' : 'preferred_document_filename_regular_expression',
'storage_id' : 'preferred_document_file_name_regular_expression', # Compatibility
'description' : 'A regular expression to parse file names', 'description' : 'A regular expression to parse file names',
'type' : 'string', 'type' : 'string',
'preference' : 1, 'preference' : 1,
...@@ -118,6 +119,20 @@ class DocumentPreference: ...@@ -118,6 +119,20 @@ class DocumentPreference:
'default' : False, 'default' : False,
'preference' : 1, 'preference' : 1,
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_ingestion_namespace',
'description' : 'Namespace to use for url registry',
'type' : 'string',
'write_permission': Permissions.ManageProperties,
'default' : '',
'preference' : 1,
'mode' : 'w' },
# Kept for compatibility - will be removed some day
{ 'id' : 'preferred_document_file_name_regular_expression',
'description' : 'An alias of preferred_document_filename_regular_expression',
'type' : 'string',
'preference' : 1,
'write_permission': Permissions.ManageProperties,
'mode' : '' },
) )
# vim: shiftwidth=2 # vim: shiftwidth=2
......
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