[Erp5-report] r13480 - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Mar 18 19:02:21 CET 2007


Author: jp
Date: Sun Mar 18 19:02:19 2007
New Revision: 13480

URL: http://svn.erp5.org?rev=13480&view=rev
Log:
Everything should work now. bt5 upgrade (not yet committed) will be necessaru to benefit from better guard in document_publication_workflow.

Modified:
    erp5/trunk/products/ERP5/Document/Document.py

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=13480&r1=13479&r2=13480&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Sun Mar 18 19:02:19 2007
@@ -334,6 +334,7 @@
                     , PropertySheet.Document
                     , PropertySheet.Url
                     , PropertySheet.Snapshot
+                    , PropertySheet.Periodicity
                     )
 
   # Declarative interfaces
@@ -998,10 +999,12 @@
       about any file format.
 
       Other possible applications: conversion of HTML
-      text to tiddie HTML such as described here:
+      text to tiddy HTML such as described here:
       http://www.xml.com/pub/a/2004/09/08/pyxml.html
       so that resulting text can be processed more
-      easily by XSLT parsers.
+      easily by XSLT parsers. Conversion of internal
+      links to images of an HTML document to local
+      links (in combindation with populate).
     """
     raise NotImplementedError
 
@@ -1034,3 +1037,38 @@
       del(self.snapshot_data)
     except AttributeError:
       pass
+
+  # Transformation API
+  def populateContent(self):
+    """
+      Populates the Document with subcontent based on the
+      document base data.
+
+      This can be used for example to transform the XML
+      of an RSS feed into a single piece per news or
+      to transform an XML export from a database into
+      individual records. Other application: populate
+      an HTML text document with its images, used in
+      conversion with convertToBaseFormat.
+
+      NOTE: to be implemented as typed base method.
+    """
+    pass
+
+  # Crawling API
+  def getContentURLList(self):
+    """
+      Returns a list of URLs referenced by the content of this document.
+
+      NOTE: to be implemented as typed base method or
+      by subclass.
+    """
+    pass
+
+  def updateContentFromURL(self):
+    """
+      Download and update content of this document from its source URL.
+
+      NOTE: to be implemented here.
+    """
+    pass




More information about the Erp5-report mailing list