Commit 0d00dba9 authored by Bartek Górny's avatar Bartek Górny

Changed DMS Pdf File into PdfDocument (with another base class)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9411 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a83eacf9
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>priority</string> </key> <key> <string>priority</string> </key>
<value> <float>50.0</float> </value> <value> <float>35.0</float> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
<portal_type id="DMS File"> <portal_type id="DMS File">
<item>Role Definition</item> <item>Role Definition</item>
</portal_type> </portal_type>
<portal_type id="DMS Pdf File">
<item>Role Definition</item>
</portal_type>
<portal_type id="Document Module"> <portal_type id="Document Module">
<item>Text</item> <item>Text</item>
<item>Spreadsheet</item> <item>Spreadsheet</item>
<item>DMS Pdf File</item>
<item>Presentation</item> <item>Presentation</item>
<item>DMS File</item> <item>DMS File</item>
<item>Graphic</item> <item>Graphic</item>
<item>PdfDocument</item>
</portal_type> </portal_type>
<portal_type id="File"> <portal_type id="File">
<item>Role Definition</item> <item>Role Definition</item>
...@@ -22,6 +19,9 @@ ...@@ -22,6 +19,9 @@
<portal_type id="Image Module"> <portal_type id="Image Module">
<item>Image</item> <item>Image</item>
</portal_type> </portal_type>
<portal_type id="PdfDocument">
<item>Role Definition</item>
</portal_type>
<portal_type id="Presentation"> <portal_type id="Presentation">
<item>Role Definition</item> <item>Role Definition</item>
</portal_type> </portal_type>
......
...@@ -58,19 +58,16 @@ ...@@ -58,19 +58,16 @@
</item> </item>
<item> <item>
<key> <string>content_meta_type</string> </key> <key> <string>content_meta_type</string> </key>
<value> <string>ERP5 DMS File</string> </value> <value> <string>ERP5 Pdf Document</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string> Special base class, different from File only in that it can contain things \n <value> <string> PdfDocument - same as DMS File, but has its own getSearchableText method\n
(like Role Definition, for example)\n (converts via pdftotext)</string> </value>
Could (perhaps should) be a parent class for OOoDocument\n
Should probably be located somewhere else\n
</string> </value>
</item> </item>
<item> <item>
<key> <string>factory</string> </key> <key> <string>factory</string> </key>
<value> <string>addDMSFile</string> </value> <value> <string>addPdfDocument</string> </value>
</item> </item>
<item> <item>
<key> <string>filter_content_types</string> </key> <key> <string>filter_content_types</string> </key>
...@@ -90,7 +87,7 @@ ...@@ -90,7 +87,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>DMS Pdf File</string> </value> <value> <string>PdfDocument</string> </value>
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<type>DMS File</type> <type>DMS File</type>
<workflow>document_publication_workflow, edit_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow</workflow> <workflow>document_publication_workflow, edit_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow</workflow>
</chain> </chain>
<chain>
<type>DMS Pdf File</type>
<workflow>document_publication_workflow, edit_workflow, dms_file_interaction_workflow, local_permission_interaction_workflow</workflow>
</chain>
<chain> <chain>
<type>Graphic</type> <type>Graphic</type>
<workflow>ooo_interaction_workflow, edit_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow, document_publication_workflow</workflow> <workflow>ooo_interaction_workflow, edit_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow, document_publication_workflow</workflow>
</chain> </chain>
<chain>
<type>PdfDocument</type>
<workflow>dms_file_interaction_workflow, edit_workflow, document_publication_workflow, local_permission_interaction_workflow</workflow>
</chain>
<chain> <chain>
<type>Presentation</type> <type>Presentation</type>
<workflow>document_publication_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow, edit_workflow, ooo_interaction_workflow</workflow> <workflow>document_publication_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow, edit_workflow, ooo_interaction_workflow</workflow>
......
2006-08-24 BG
Changed DMS Pdf File into PdfDocument (with another base class)
Done a number of small fixtures.
2008-08-17 BG 2008-08-17 BG
Parsing search string for extra tricks Parsing search string for extra tricks
......
88 96
\ No newline at end of file \ No newline at end of file
...@@ -4,12 +4,6 @@ DMS File | local_permission ...@@ -4,12 +4,6 @@ DMS File | local_permission
DMS File | metadata DMS File | metadata
DMS File | related_document DMS File | related_document
DMS File | view DMS File | view
DMS Pdf File | download
DMS Pdf File | history
DMS Pdf File | local_permission
DMS Pdf File | metadata
DMS Pdf File | related_document
DMS Pdf File | view
Document Module | advanced_search Document Module | advanced_search
Document Module | list_ui Document Module | list_ui
Document Module | sort_on Document Module | sort_on
...@@ -30,6 +24,12 @@ Graphic | view ...@@ -30,6 +24,12 @@ Graphic | view
Image Module | list_ui Image Module | list_ui
Image Module | sort_on Image Module | sort_on
Image Module | view Image Module | view
PdfDocument | download
PdfDocument | history
PdfDocument | local_permission
PdfDocument | metadata
PdfDocument | related_document
PdfDocument | view
Preference | dms_preferences Preference | dms_preferences
Presentation | convert Presentation | convert
Presentation | create_snapshot Presentation | create_snapshot
......
DMS File | Role Definition DMS File | Role Definition
DMS Pdf File | Role Definition
Document Module | DMS File Document Module | DMS File
Document Module | DMS Pdf File
Document Module | Graphic Document Module | Graphic
Document Module | PdfDocument
Document Module | Presentation Document Module | Presentation
Document Module | Spreadsheet Document Module | Spreadsheet
Document Module | Text Document Module | Text
File | Role Definition File | Role Definition
Graphic | Role Definition Graphic | Role Definition
Image Module | Image Image Module | Image
PdfDocument | Role Definition
Presentation | Role Definition Presentation | Role Definition
Spreadsheet | Role Definition Spreadsheet | Role Definition
Text | Role Definition Text | Role Definition
\ No newline at end of file
DMS File DMS File
DMS Pdf File
Document Module Document Module
Graphic Graphic
Image Module Image Module
PdfDocument
Presentation Presentation
Role Definition Role Definition
Spreadsheet Spreadsheet
......
...@@ -2,15 +2,15 @@ DMS File | dms_file_interaction_workflow ...@@ -2,15 +2,15 @@ DMS File | dms_file_interaction_workflow
DMS File | document_publication_workflow DMS File | document_publication_workflow
DMS File | edit_workflow DMS File | edit_workflow
DMS File | local_permission_interaction_workflow DMS File | local_permission_interaction_workflow
DMS Pdf File | dms_file_interaction_workflow
DMS Pdf File | document_publication_workflow
DMS Pdf File | edit_workflow
DMS Pdf File | local_permission_interaction_workflow
Graphic | dms_file_interaction_workflow Graphic | dms_file_interaction_workflow
Graphic | document_publication_workflow Graphic | document_publication_workflow
Graphic | edit_workflow Graphic | edit_workflow
Graphic | local_permission_interaction_workflow Graphic | local_permission_interaction_workflow
Graphic | ooo_interaction_workflow Graphic | ooo_interaction_workflow
PdfDocument | dms_file_interaction_workflow
PdfDocument | document_publication_workflow
PdfDocument | edit_workflow
PdfDocument | local_permission_interaction_workflow
Presentation | dms_file_interaction_workflow Presentation | dms_file_interaction_workflow
Presentation | document_publication_workflow Presentation | document_publication_workflow
Presentation | edit_workflow Presentation | edit_workflow
......
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