Commit 03801014 authored by Bartek Górny's avatar Bartek Górny

2006-07-25

Fixed bugs; made it work with the conversion server; tidied up actions in Text.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8781 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8d357193
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,15 +91,18 @@ ...@@ -88,15 +91,18 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:not object.hasOOfile()</string> </value> <value> <string>python:not object.hasOOfile() and hasattr(object,\'data\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,15 +72,18 @@ ...@@ -72,15 +72,18 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>string:${object_url}/convert</string> </value> <value> <string>string:${object_url}/OOoDocument_convert</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -88,15 +91,18 @@ ...@@ -88,15 +91,18 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:not object.hasOOfile()</string> </value> <value> <string>python:object.hasFile() and object.isFileUploaded()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -72,8 +72,11 @@ ...@@ -72,8 +72,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,8 +91,11 @@ ...@@ -88,8 +91,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.ActionInformation</string>
<string>ActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>get_snapshot</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>10.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Get Snapshot</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/OOoDocument_getSnapshot</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object.hasSnapshot()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,11 @@ ...@@ -70,8 +70,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Expression" module="Products.CMFCore.Expression"/> <tuple>
<tuple/> <string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -4,10 +4,20 @@ ...@@ -4,10 +4,20 @@
<item>Spreadsheet</item> <item>Spreadsheet</item>
<item>Presentation</item> <item>Presentation</item>
<item>Graphic</item> <item>Graphic</item>
<item>File</item>
</portal_type>
<portal_type id="File">
<item>Address</item>
</portal_type> </portal_type>
<portal_type id="Image Module"> <portal_type id="Image Module">
<item>Image</item> <item>Image</item>
</portal_type> </portal_type>
<portal_type id="Presentation">
<item>Role Definition</item>
</portal_type>
<portal_type id="Text">
<item>Role Definition</item>
</portal_type>
<portal_type id="Wiki Module"> <portal_type id="Wiki Module">
<item>Wiki Page</item> <item>Wiki Page</item>
</portal_type> </portal_type>
......
<base_category_list> <base_category_list>
<portal_type id="File">
<item>destination</item>
<item>source</item>
</portal_type>
<portal_type id="Presentation"> <portal_type id="Presentation">
<item>function</item>
<item>group</item> <item>group</item>
<item>publication_section</item> <item>publication_section</item>
<item>source_project</item> <item>source_project</item>
<item>site</item> <item>site</item>
<item>classification</item> <item>classification</item>
<item>function</item>
</portal_type> </portal_type>
<portal_type id="Role Definition"> <portal_type id="Role Definition">
<item>site</item>
<item>gap</item> <item>gap</item>
<item>function</item> <item>function</item>
<item>site</item>
<item>group</item> <item>group</item>
</portal_type> </portal_type>
<portal_type id="Text">
<item>similar</item>
<item>source_project</item>
<item>source</item>
<item>destination</item>
</portal_type>
<portal_type id="Wiki Page"> <portal_type id="Wiki Page">
<item>extra_assignor</item> <item>extra_assignor</item>
<item>extra_author</item> <item>extra_auditor</item>
<item>destination</item>
<item>extra_assignee</item>
<item>similar</item>
<item>source</item> <item>source</item>
<item>similar</item>
<item>extra_assignee</item>
<item>extra_associate</item> <item>extra_associate</item>
<item>publication_section</item> <item>publication_section</item>
<item>extra_auditor</item> <item>extra_author</item>
<item>destination</item>
</portal_type> </portal_type>
</base_category_list> </base_category_list>
\ No newline at end of file
...@@ -68,11 +68,9 @@ ...@@ -68,11 +68,9 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request=context.REQUEST\n <value> <string>msg=context.convert()\n
request.RESPONSE.setHeader(\'Content-type\', context.getFormat())\n context.log(script.getId(),msg)\n
context.log(\'format\',context.getFormat())\n return context.REQUEST.RESPONSE.redirect(context.absolute_url()+\'/view?portal_status_message=\'+str(msg[1]))\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment;; filename="%s"\' % context.title_or_id())\n
return context.getPdf()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -117,7 +115,10 @@ return context.getPdf()\n ...@@ -117,7 +115,10 @@ return context.getPdf()\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>msg</string>
<string>script</string>
<string>str</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -134,7 +135,7 @@ return context.getPdf()\n ...@@ -134,7 +135,7 @@ return context.getPdf()\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>OOoDocument_getPDF</string> </value> <value> <string>OOoDocument_convert</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -134,7 +134,7 @@ return context.getOOfile()\n ...@@ -134,7 +134,7 @@ return context.getOOfile()\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>OOoDocument_getOOfile</string> </value> <value> <string>OOoDocument_getOOoFile</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request=context.REQUEST\n <value> <string>request=context.REQUEST\n
request.RESPONSE.setHeader(\'Content-type\', context.getFormat())\n request.RESPONSE.setHeader(\'Content-type\', \'application/pdf\')\n
context.log(\'format\',context.getFormat())\n context.log(\'format\',\'application/pdf\')\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment;; filename="%s"\' % context.title_or_id())\n request.RESPONSE.setHeader(\'Content-disposition\', \'attachment;; filename="%s.pdf"\' % context.title_or_id())\n
return context.getSnapshot()\n return context.getSnapshot()\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
\n \n
request=context.REQUEST\n request=context.REQUEST\n
request.RESPONSE.setHeader(\'Content-type\', context.getFormat())\n request.RESPONSE.setHeader(\'Content-type\', context.getFormat())\n
context.log(\'format\',context.getFormat())\n context.log(\'format\',format)\n
request.RESPONSE.setHeader(\'Content-disposition\', \'attachment;; filename="%s.%s"\' % ((filename or context.title_or_id(), format)))\n request.RESPONSE.setHeader(\'Content-disposition\', \'attachment;; filename="%s.%s"\' % ((filename or context.title_or_id(), format)))\n
return context.getTargetFile(format)\n return context.getTargetFile(format)\n
</string> </value> </string> </value>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>Default</string> <string>left</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -70,11 +70,11 @@ ...@@ -70,11 +70,11 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>Default</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>your_filename</string> <string>my_format</string>
<string>your_format</string> <string>my_filename</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -3,15 +3,18 @@ ...@@ -3,15 +3,18 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/> <tuple>
<tuple/> <string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_filename</string> </value> <value> <string>my_filename</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -3,15 +3,18 @@ ...@@ -3,15 +3,18 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/> <tuple>
<tuple/> <string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_format</string> </value> <value> <string>my_format</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -267,8 +270,11 @@ ...@@ -267,8 +270,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <tuple>
<tuple/> <string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -70,8 +70,9 @@ ...@@ -70,8 +70,9 @@
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <list>
<string>OOoDocument</string>
<string>Presentation</string> <string>Presentation</string>
<string>Spreadsheet</string>
<string>Text</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -71,15 +71,15 @@ ...@@ -71,15 +71,15 @@
<value> <string>ob=state_change.object\n <value> <string>ob=state_change.object\n
kw=ob.REQUEST\n kw=ob.REQUEST\n
ob.log(\'interaction\',\'edit\')\n ob.log(\'interaction\',\'edit\')\n
\n metafields=(\'title\',\'subject\',\'keywords\',\'description\',\'reference\')\n
f=kw.get(\'my_file\',None)\n f=kw.get(\'my_file\',None)\n
ob.log(\'f\',f)\n ob.log(\'f\',f)\n
\n \n
# edit metadata (only if we have OOo file)\n # edit metadata (only if we have OOo file)\n
if ob.hasOOfile():\n if ob.hasOOfile():\n
newmeta={}\n newmeta={}\n
ob.log(\'metafields\',ob.metafields)\n ob.log(\'metafields\',metafields)\n
for mf in ob.metafields:\n for mf in metafields:\n
keymf=\'my_\'+mf\n keymf=\'my_\'+mf\n
ob.log(\'keymf\',keymf)\n ob.log(\'keymf\',keymf)\n
if kw.has_key(keymf):\n if kw.has_key(keymf):\n
...@@ -94,6 +94,7 @@ if f is not None and f:\n ...@@ -94,6 +94,7 @@ if f is not None and f:\n
ob.log(\'file\',f)\n ob.log(\'file\',f)\n
fname=f.filename\n fname=f.filename\n
ob.setOriginalFilename(fname)\n ob.setOriginalFilename(fname)\n
ob.setTitle(fname)\n
ob.setLastUploadTime(DateTime())\n ob.setLastUploadTime(DateTime())\n
ob.clearCache()\n ob.clearCache()\n
</string> </value> </string> </value>
...@@ -142,6 +143,7 @@ if f is not None and f:\n ...@@ -142,6 +143,7 @@ if f is not None and f:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>ob</string> <string>ob</string>
<string>kw</string> <string>kw</string>
<string>metafields</string>
<string>None</string> <string>None</string>
<string>f</string> <string>f</string>
<string>newmeta</string> <string>newmeta</string>
......
2006-07-25
Fixed bugs; made it work with the conversion server; tidied up actions in Text.
2006-07-24 2006-07-24
* made all the security system work (!!! required a change to ERP5Type.py and to destination_project base cat., not in svn yet) * made all the security system work (!!! required a change to ERP5Type.py and to destination_project base cat., not in svn yet)
......
...@@ -65,7 +65,6 @@ Text | download ...@@ -65,7 +65,6 @@ Text | download
Text | download_ooo Text | download_ooo
Text | download_snapshot Text | download_snapshot
Text | export Text | export
Text | get_snapshot
Text | history Text | history
Text | local_permission Text | local_permission
Text | metadata Text | metadata
......
Document Module | File
Document Module | Graphic Document Module | Graphic
Document Module | Presentation Document Module | Presentation
Document Module | Spreadsheet Document Module | Spreadsheet
Document Module | Text Document Module | Text
File | Address
Image Module | Image Image Module | Image
Presentation | Role Definition
Text | Role Definition
Wiki Module | Wiki Page Wiki Module | Wiki Page
Wiki Page | File Wiki Page | File
Wiki Page | Image Wiki Page | Image
......
File | destination
File | source
Presentation | classification Presentation | classification
Presentation | function Presentation | function
Presentation | group Presentation | group
...@@ -8,6 +10,10 @@ Role Definition | function ...@@ -8,6 +10,10 @@ Role Definition | function
Role Definition | gap Role Definition | gap
Role Definition | group Role Definition | group
Role Definition | site Role Definition | site
Text | destination
Text | similar
Text | source
Text | source_project
Wiki Page | destination Wiki Page | destination
Wiki Page | extra_assignee Wiki Page | extra_assignee
Wiki Page | extra_assignor Wiki Page | extra_assignor
......
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