[Erp5-report] r22389 - in /erp5/trunk/bt5/erp5_mrp: SkinTemplateItem/portal_skins/erp5_mrp/...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 9 16:20:51 CEST 2008


Author: luke
Date: Wed Jul  9 16:20:50 2008
New Revision: 22389

URL: http://svn.erp5.org?rev=22389&view=rev
Log:
- use external script, which is type-based, to optionally add node_uid to getFutureInventoryList parameters

Added:
    erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml
Modified:
    erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml
    erp5/trunk/bt5/erp5_mrp/bt/revision

Added: erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml?rev=22389&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml (added)
+++ erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml Wed Jul  9 16:20:50 2008
@@ -1,0 +1,162 @@
+<?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>"""List Method script to show only inventory for destination"""\n
+\n
+portal_type_dict_mapping = {\n
+  \'Production Order\' : {\'node_uid\' : context.getDestinationUid()},\n
+}\n
+kw[\'group_by_node\'] = 1\n
+kw[\'group_by_section\'] = 0\n
+kw[\'group_by_variation\'] = 1\n
+kw[\'explanation_uid\'] = context.getUid()\n
+\n
+kw.update( **portal_type_dict_mapping.get(context.getPortalType(),{}) )\n
+return context.getFutureInventoryList(*args,**kw)\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>*args, **kw</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>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>args</string>
+                            <string>kw</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>portal_type_dict_mapping</string>
+                            <string>_write_</string>
+                            <string>_apply_</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>ProductionDelivery_getFutureInventoryList</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml?rev=22389&r1=22388&r2=22389&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml (original)
+++ erp5/trunk/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml Wed Jul  9 16:20:50 2008
@@ -17,7 +17,6 @@
                 <string>columns</string>
                 <string>list_method</string>
                 <string>selection_name</string>
-                <string>default_params</string>
                 <string>domain_tree</string>
                 <string>domain_root_list</string>
                 <string>list_action</string>
@@ -127,25 +126,6 @@
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>default_params</string> </key>
-                    <value>
-                      <list>
-                        <tuple>
-                          <string>group_by_node</string>
-                          <string>1</string>
-                        </tuple>
-                        <tuple>
-                          <string>group_by_variation</string>
-                          <string>1</string>
-                        </tuple>
-                        <tuple>
-                          <string>group_by_section</string>
-                          <string>0</string>
-                        </tuple>
-                      </list>
-                    </value>
-                </item>
-                <item>
                     <key>                 <string>domain_root_list</string> </key>
                     <value>
                       <list>
@@ -207,7 +187,7 @@
       <dictionary>
         <item>
             <key> <string>method_name</string> </key>
-            <value> <string>getFutureInventoryList</string> </value>
+            <value> <string>ProductionDelivery_getFutureInventoryList</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_mrp/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_mrp/bt/revision?rev=22389&r1=22388&r2=22389&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_mrp/bt/revision (original)
+++ erp5/trunk/bt5/erp5_mrp/bt/revision Wed Jul  9 16:20:50 2008
@@ -1,1 +1,1 @@
-346
+347




More information about the Erp5-report mailing list