Commit 11dcde94 authored by Bartek Górny's avatar Bartek Górny

__dav_collection__ flag moved here; added empty property data; source...

__dav_collection__ flag moved here; added empty property data; source reference set in discoverMetadata stage

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12368 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24509bcc
...@@ -296,6 +296,7 @@ class Document(XMLObject): ...@@ -296,6 +296,7 @@ class Document(XMLObject):
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isDocument = 1 isDocument = 1
__dav_collection__=0
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -317,6 +318,7 @@ class Document(XMLObject): ...@@ -317,6 +318,7 @@ class Document(XMLObject):
'version', 'short_title', 'keyword', 'version', 'short_title', 'keyword',
'subject', 'source_reference', 'source_project_title') 'subject', 'source_reference', 'source_project_title')
data = '' # some day this will be in property sheets
### Content processing methods ### Content processing methods
security.declareProtected(Permissions.View, 'index_html') security.declareProtected(Permissions.View, 'index_html')
...@@ -782,6 +784,7 @@ class Document(XMLObject): ...@@ -782,6 +784,7 @@ class Document(XMLObject):
# Get the order # Get the order
# Preference is made of a sequence of 'user_login', 'content', 'file_name', 'input' # Preference is made of a sequence of 'user_login', 'content', 'file_name', 'input'
self.setSourceReference(file_name)
method = self._getTypeBasedMethod('getPreferredDocumentMetadataDiscoveryOrderList', method = self._getTypeBasedMethod('getPreferredDocumentMetadataDiscoveryOrderList',
fallback_script_id = 'Document_getPreferredDocumentMetadataDiscoveryOrderList') fallback_script_id = 'Document_getPreferredDocumentMetadataDiscoveryOrderList')
order_list = list(method()) order_list = list(method())
......
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