Commit eb05da5e authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added minimal support for URL storage. This way, any standard document can be...

Added minimal support for URL storage. This way, any standard document can be a placeholder for an externaal source.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90ed8507
...@@ -41,6 +41,7 @@ from Products.ERP5Type.XMLObject import XMLObject ...@@ -41,6 +41,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.WebDAVSupport import TextContent from Products.ERP5Type.WebDAVSupport import TextContent
from Products.ERP5Type.Message import Message from Products.ERP5Type.Message import Message
from Products.ERP5Type.Utils import convertToUpperCase, convertToMixedCase from Products.ERP5Type.Utils import convertToUpperCase, convertToMixedCase
from Products.ERP5.Document.Url import UrlMixIn
_MARKER = [] _MARKER = []
VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input') VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input')
...@@ -172,7 +173,7 @@ if ever was the file produced ...@@ -172,7 +173,7 @@ if ever was the file produced
return s return s
class Document(XMLObject): class Document(XMLObject, UrlMixIn):
""" """
Document is an abstract class with all methods Document is an abstract class with all methods
related to document management in ERP5. This includes related to document management in ERP5. This includes
...@@ -331,6 +332,7 @@ class Document(XMLObject): ...@@ -331,6 +332,7 @@ class Document(XMLObject):
, PropertySheet.DublinCore , PropertySheet.DublinCore
, PropertySheet.Version , PropertySheet.Version
, PropertySheet.Document , PropertySheet.Document
, PropertySheet.Url
) )
# Declarative interfaces # Declarative interfaces
...@@ -827,7 +829,7 @@ class Document(XMLObject): ...@@ -827,7 +829,7 @@ class Document(XMLObject):
""" """
This is the main metadata discovery function - controls the process This is the main metadata discovery function - controls the process
of discovering data from various sources. The discovery itself is of discovering data from various sources. The discovery itself is
delegated to scripts or uses preferences-configurable regexps. delegated to scripts or uses preference-configurable regexps.
file_name - this parameter is a file name of the form "AA-BBB-CCC-223-en" file_name - this parameter is a file name of the form "AA-BBB-CCC-223-en"
......
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