[Erp5-report] r14567 - in /erp5/trunk/bt5/erp5_banking_core: ActionTemplateItem/portal_type...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 23 15:19:15 CEST 2007
Author: seb
Date: Wed May 23 15:19:14 2007
New Revision: 14567
URL: http://svn.erp5.org?rev=14567&view=rev
Log:
added new script in order to retrieve a check model thanks to its reference
Added:
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getCheckModelByReference.xml
Modified:
erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/metadata.xml
erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/print.xml
erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/view.xml
erp5/trunk/bt5/erp5_banking_core/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/metadata.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%2520Model%2520Check%2520Amount%2520Variation/metadata.xml?rev=14567&r1=14566&r2=14567&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/metadata.xml (original)
+++ erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/metadata.xml Wed May 23 15:19:14 2007
@@ -67,18 +67,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
- <tuple>
- <string>Products.CMFCore.Expression</string>
- <string>Expression</string>
- </tuple>
- <none/>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
- <value> <string>string:${object_url}/metadata_edit</string> </value>
+ <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/print.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%2520Model%2520Check%2520Amount%2520Variation/print.xml?rev=14567&r1=14566&r2=14567&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/print.xml (original)
+++ erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/print.xml Wed May 23 15:19:14 2007
@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
- <tuple>
- <string>Products.CMFCore.Expression</string>
- <string>Expression</string>
- </tuple>
- <none/>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
Modified: erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/view.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%2520Model%2520Check%2520Amount%2520Variation/view.xml?rev=14567&r1=14566&r2=14567&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/view.xml (original)
+++ erp5/trunk/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Checkbook%20Model%20Check%20Amount%20Variation/view.xml Wed May 23 15:19:14 2007
@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
- <tuple>
- <string>Products.CMFCore.Expression</string>
- <string>Expression</string>
- </tuple>
- <none/>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
Added: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getCheckModelByReference.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getCheckModelByReference.xml?rev=14567&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getCheckModelByReference.xml (added)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getCheckModelByReference.xml Wed May 23 15:19:14 2007
@@ -1,0 +1,181 @@
+<?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 encoding="cdata"><![CDATA[
+
+from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
+from Products.ERP5Type.Message import Message\n
+if reference is None:\n
+ msg = Message(domain=\'ui\', message="Check not defined.")\n
+ raise ValidationFailed, (msg,)\n
+model_list = [x for x in context.checkbook_model_module.objectValues()\n
+ if x.getReference()==reference]\n
+model_list_len = len(model_list)\n
+if model_list_len == 0:\n
+ msg = Message(domain=\'ui\', message="Check not defined.")\n
+ raise ValidationFailed, (msg,)\n
+if model_list_len > 1:\n
+ msg = Message(domain=\'ui\', message="Two many check models with this reference.")\n
+ raise ValidationFailed, (msg,)\n
+return model_list[0]\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>_owner</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>reference=None</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>reference</string>
+ <string>Products.DCWorkflow.DCWorkflow</string>
+ <string>ValidationFailed</string>
+ <string>Products.ERP5Type.Message</string>
+ <string>Message</string>
+ <string>None</string>
+ <string>msg</string>
+ <string>append</string>
+ <string>$append0</string>
+ <string>_getiter_</string>
+ <string>_getattr_</string>
+<string>context</string>
+ <string>x</string>
+ <string>model_list</string>
+ <string>len</string>
+ <string>model_list_len</string>
+ <string>_getitem_</string>
+ </tuple>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_defaults</string> </key>
+ <value>
+ <tuple>
+ <none/>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>Base_getCheckModelByReference</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_banking_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/bt/revision?rev=14567&r1=14566&r2=14567&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_core/bt/revision Wed May 23 15:19:14 2007
@@ -1,1 +1,1 @@
-230
+232
More information about the Erp5-report
mailing list