[Erp5-report] r15121 - in /erp5/trunk/bt5/erp5_banking_cash: ActionTemplateItem/portal_type...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jul 3 11:54:32 CEST 2007


Author: aurel
Date: Tue Jul  3 11:54:32 2007
New Revision: 15121

URL: http://svn.erp5.org?rev=15121&view=rev
Log:
add more script in wf, and condition on actions

Added:
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkBankAccountForInterface.xml
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/sendRequestToInterface.xml
Modified:
    erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/in_input.xml
    erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/out_input.xml
    erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/Incident_viewOutgoingLineFastInputDialog.xml
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/confirm.xml
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/stop.xml
    erp5/trunk/bt5/erp5_banking_cash/bt/revision

Modified: erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/in_input.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/in_input.xml?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/in_input.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/in_input.xml Tue Jul  3 11:54:32 2007
@@ -27,7 +27,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -36,7 +38,7 @@
         <item>
             <key> <string>icon</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
         <item>
@@ -93,6 +95,22 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
+            <value> <string>python: here.getSimulationState() == "ordered"</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
             <value> <string>string:${portal_url}/images/cash_in.png</string> </value>
         </item>
       </dictionary>

Modified: erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/out_input.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/out_input.xml?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/out_input.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Incident/out_input.xml Tue Jul  3 11:54:32 2007
@@ -27,7 +27,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -36,7 +38,7 @@
         <item>
             <key> <string>icon</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
         <item>
@@ -93,6 +95,22 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
+            <value> <string>python: here.getSimulationState() == "ordered"</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
             <value> <string>string:${portal_url}/images/cash_out.png</string> </value>
         </item>
       </dictionary>

Modified: erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/Incident_viewOutgoingLineFastInputDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/Incident_viewOutgoingLineFastInputDialog.xml?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/Incident_viewOutgoingLineFastInputDialog.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/Incident_viewOutgoingLineFastInputDialog.xml Tue Jul  3 11:54:32 2007
@@ -76,7 +76,7 @@
 \n
 cash_detail_dict = {\'line_portal_type\'           : \'Outgoing Incident Line\'\n
                     , \'operation_currency\'       : currency\n
-                    , \'cash_status_list\'         : [\'valid\',\'new_emitted\']\n
+                    , \'cash_status_list\'         : [\'valid\',\'new_emitted\', \'not_defined\']\n
                     , \'emission_letter_list\'     : None\n
                     , \'variation_list\'           : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
                     , \'currency_cash_portal_type\': None\n

Added: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkBankAccountForInterface.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkBankAccountForInterface.xml?rev=15121&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkBankAccountForInterface.xml (added)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkBankAccountForInterface.xml Tue Jul  3 11:54:32 2007
@@ -1,0 +1,155 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </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>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
+from Products.ERP5Type.Message import Message\n
+\n
+transaction = state_change[\'object\']\n
+\n
+\n
+if transaction.getDestinationPaymentValue().getBicCode(\'\') == \'\':\n
+  msg = Message(domain = "ui", message="Bank account can\'t be used with interface.")\n
+  raise ValidationFailed, (msg,)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>state_change</string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>1</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>state_change</string>
+                            <string>Products.DCWorkflow.DCWorkflow</string>
+                            <string>ValidationFailed</string>
+                            <string>Products.ERP5Type.Message</string>
+                            <string>Message</string>
+                            <string>_getitem_</string>
+                            <string>transaction</string>
+                            <string>_getattr_</string>
+                            <string>msg</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>checkBankAccountForInterface</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/sendRequestToInterface.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/sendRequestToInterface.xml?rev=15121&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/sendRequestToInterface.xml (added)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/sendRequestToInterface.xml Tue Jul  3 11:54:32 2007
@@ -1,0 +1,166 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </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>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
+from Products.ERP5Type.Message import Message\n
+\n
+transaction = state_change[\'object\']\n
+\n
+obj=transaction\n
+line=transaction[\'movement\']\n
+if line.getPortalType() != "Banking Operation Line":\n
+  msg = Message(domain = "ui", message="Document is misconfigure, report it to administrator.")\n
+  raise ValidationFailed, (msg,)\n
+\n
+# send request to interface\n
+d = context.STAR_initXMLTag()\n
+context.STAR_generateOutgoingXMLHeader(obj, d)\n
+context.STAR_generateMT202Block4(obj, line, d, source=1)\n
+context.STAR_generateXMLMessage(obj, d)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>state_change</string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>1</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>state_change</string>
+                            <string>Products.DCWorkflow.DCWorkflow</string>
+                            <string>ValidationFailed</string>
+                            <string>Products.ERP5Type.Message</string>
+                            <string>Message</string>
+                            <string>_getitem_</string>
+                            <string>transaction</string>
+                            <string>obj</string>
+                            <string>line</string>
+                            <string>_getattr_</string>
+                            <string>msg</string>
+                            <string>context</string>
+                            <string>d</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>sendRequestToInterface</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/confirm.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/confirm.xml?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/confirm.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/confirm.xml Tue Jul  3 11:54:32 2007
@@ -51,7 +51,7 @@
         </item>
         <item>
             <key> <string>script_name</string> </key>
-            <value> <string></string> </value>
+            <value> <string>checkBankAccountForInterface</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>

Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/stop.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/stop.xml?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/stop.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/transitions/stop.xml Tue Jul  3 11:54:32 2007
@@ -51,7 +51,7 @@
         </item>
         <item>
             <key> <string>script_name</string> </key>
-            <value> <string></string> </value>
+            <value> <string>sendRequestToInterface</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>

Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=15121&r1=15120&r2=15121&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Tue Jul  3 11:54:32 2007
@@ -1,1 +1,1 @@
-400
+402




More information about the Erp5-report mailing list