From 1efed7ede3fe9956602f504b0392df9ffbe0c7b8 Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Tue, 14 Dec 2010 14:16:42 +0000 Subject: [PATCH] 2010-12-14 gabriel * Added one preference and one template for each allowed object in UNG Web Site git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41420 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_preferences/ung_preference.xml | 146 ++++++++++++++++++ .../web_illustration_template.xml | 100 ++++++++++++ .../ung_preference/web_page_template.xml | 100 ++++++++++++ .../ung_preference/web_table_template.xml | 100 ++++++++++++ bt5/erp5_web_ung_theme/bt/change_log | 3 + bt5/erp5_web_ung_theme/bt/comment | 3 +- bt5/erp5_web_ung_theme/bt/revision | 2 +- bt5/erp5_web_ung_theme/bt/template_path_list | 2 + 8 files changed, 454 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference.xml create mode 100644 bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_illustration_template.xml create mode 100644 bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_page_template.xml create mode 100644 bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_table_template.xml diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference.xml new file mode 100644 index 0000000000..e699e11350 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference.xml @@ -0,0 +1,146 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Preference" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Delete_objects_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ung_preference</string> </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>1</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Preference</string> </value> + </item> + <item> + <key> <string>preferred_diff_filter_script_id</string> </key> + <value> + <tuple> + <string>TemplateTool_filterTemplateUnicodeDiff</string> + <string>TemplateTool_filterPortalTypeClassDiff</string> + <string>TemplateTool_filterClassTupleDiff</string> + <string>TemplateTool_filterOOBTreeClassDiff</string> + <string>TemplateTool_filterAppendToListDiff</string> + </tuple> + </value> + </item> + <item> + <key> <string>preferred_subversion_working_copy</string> </key> + <value> + <tuple> + <string>/hd/ung.instance2/parts/development-site/bt5</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>UNG Preference</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_illustration_template.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_illustration_template.xml new file mode 100644 index 0000000000..8c6a6cca14 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_illustration_template.xml @@ -0,0 +1,100 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Illustration" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_illustration_template</string> </value> + </item> + <item> + <key> <string>isIndexable</string> </key> + <value> + <object> + <klass> + <global id="1.1" name="PropertyGetter" module="Products.ERP5Type.Accessor.Constant"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>isTemplate</string> </key> + <value> + <object> + <klass> <reference id="1.1"/> </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Illustration</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Illustration</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_page_template.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_page_template.xml new file mode 100644 index 0000000000..e5ece16a8d --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_page_template.xml @@ -0,0 +1,100 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Page" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_page_template</string> </value> + </item> + <item> + <key> <string>isIndexable</string> </key> + <value> + <object> + <klass> + <global id="1.1" name="PropertyGetter" module="Products.ERP5Type.Accessor.Constant"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>isTemplate</string> </key> + <value> + <object> + <klass> <reference id="1.1"/> </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_table_template.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_table_template.xml new file mode 100644 index 0000000000..7c6d3d3715 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_preferences/ung_preference/web_table_template.xml @@ -0,0 +1,100 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Table" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_table_template</string> </value> + </item> + <item> + <key> <string>isIndexable</string> </key> + <value> + <object> + <klass> + <global id="1.1" name="PropertyGetter" module="Products.ERP5Type.Accessor.Constant"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isIndexable</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>isTemplate</string> </key> + <value> + <object> + <klass> <reference id="1.1"/> </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>_id</string> </key> + <value> <string>isTemplate</string> </value> + </item> + <item> + <key> <string>value</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Table</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Table</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/bt/change_log b/bt5/erp5_web_ung_theme/bt/change_log index 453a589f01..6277eb085f 100644 --- a/bt5/erp5_web_ung_theme/bt/change_log +++ b/bt5/erp5_web_ung_theme/bt/change_log @@ -1,3 +1,6 @@ +2010-12-14 gabriel +* Added one preference and one template for each allowed object in UNG Web Site + 2010-12-13 gabriel * Remove all categories because for now all ung sections are domains only diff --git a/bt5/erp5_web_ung_theme/bt/comment b/bt5/erp5_web_ung_theme/bt/comment index 0f86f5ba70..2544f05772 100644 --- a/bt5/erp5_web_ung_theme/bt/comment +++ b/bt5/erp5_web_ung_theme/bt/comment @@ -3,4 +3,5 @@ Experimental theme to provide an UNG experience as part of an ERP5 web site. TODO: - Define naming conventions for jquery - Clean up the javascript code -- SpreadSheet Formula is ignored when the document is uploaded \ No newline at end of file +- SpreadSheet Formula is ignored when the document is uploaded +- Change UNG Web Site to use ERP5 System Templates \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index 3fdc173dab..a09fd8ad47 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -122 \ No newline at end of file +124 \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/template_path_list b/bt5/erp5_web_ung_theme/bt/template_path_list index 1e1c77738d..b0038a0913 100644 --- a/bt5/erp5_web_ung_theme/bt/template_path_list +++ b/bt5/erp5_web_ung_theme/bt/template_path_list @@ -1,5 +1,7 @@ portal_domains/ung_domain portal_domains/ung_domain/** +portal_preferences/ung_preference +portal_preferences/ung_preference/** web_page_module/** web_site_module/ung web_site_module/ung/** \ No newline at end of file -- 2.30.9