[Erp5-report] r42096 rafael - in /erp5/trunk/bt5/erp5_configurator_standard: PathTemplateIt...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 6 22:01:00 CET 2011


Author: rafael
Date: Thu Jan  6 22:01:00 2011
New Revision: 42096

URL: http://svn.erp5.org?rev=42096&view=rev
Log:
Include before script into workflow. This script will set some default properties into Business Configuration if those properties are None.

Added:
    erp5/trunk/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupStandardInit.xml
Modified:
    erp5/trunk/bt5/erp5_configurator_standard/PathTemplateItem/workflow_module/erp5_standard_workflow/56.xml
    erp5/trunk/bt5/erp5_configurator_standard/bt/revision

Modified: erp5/trunk/bt5/erp5_configurator_standard/PathTemplateItem/workflow_module/erp5_standard_workflow/56.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_configurator_standard/PathTemplateItem/workflow_module/erp5_standard_workflow/56.xml?rev=42096&r1=42095&r2=42096&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_configurator_standard/PathTemplateItem/workflow_module/erp5_standard_workflow/56.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_configurator_standard/PathTemplateItem/workflow_module/erp5_standard_workflow/56.xml [utf8] Thu Jan  6 22:01:00 2011
@@ -46,6 +46,10 @@
             <value> <string>BusinessConfiguration_setupStandardBT5</string> </value>
         </item>
         <item>
+            <key> <string>before_script_id</string> </key>
+            <value> <string>BusinessConfiguration_setupStandardInit</string> </value>
+        </item>
+        <item>
             <key> <string>categories</string> </key>
             <value>
               <tuple>

Added: erp5/trunk/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupStandardInit.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupStandardInit.xml?rev=42096&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupStandardInit.xml (added)
+++ erp5/trunk/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupStandardInit.xml [utf8] Thu Jan  6 22:01:00 2011
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string># Update Business Configuration Properties if not set.\n
+\n
+if context.getUserInterfaceDescriptionFileId() is None:\n
+  context.setUserInterfaceDescriptionFileId("basic_configuration_ui_description.ods")\n
+\n
+if context.getConfigurationAfterScriptId() is None:\n
+  context.setConfigurationAfterScriptId(\'BusinessConfiguration_afterConfiguration\')\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>**kw</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>BusinessConfiguration_setupStandardInit</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_configurator_standard/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_configurator_standard/bt/revision?rev=42096&r1=42095&r2=42096&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_configurator_standard/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_configurator_standard/bt/revision [utf8] Thu Jan  6 22:01:00 2011
@@ -1 +1 @@
-551
\ No newline at end of file
+552
\ No newline at end of file



More information about the Erp5-report mailing list