[Erp5-report] r41281 nicolas - in /erp5/trunk/bt5/erp5_item: SkinTemplateItem/portal_skins/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 9 17:11:50 CET 2010
Author: nicolas
Date: Thu Dec 9 17:11:50 2010
New Revision: 41281
URL: http://svn.erp5.org?rev=41281&view=rev
Log:
get tools from portal itself
Modified:
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingList.xml
erp5/trunk/bt5/erp5_item/bt/revision
Modified: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingList.xml?rev=41281&r1=41280&r2=41281&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingList.xml [utf8] Thu Dec 9 17:11:50 2010
@@ -51,19 +51,20 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n
-catalog = context.portal_catalog.getResultValue\n
+portal = context.getPortalObject()\n
+catalog = portal.portal_catalog.getResultValue\n
if current:\n
- method = context.portal_simulation.getCurrentTrackingList\n
+ method = portal.portal_simulation.getCurrentTrackingList\n
else:\n
- method = context.portal_simulation.getTrackingList\n
+ method = portal.portal_simulation.getTrackingList\n
\n
uid = context.getUid()\n
\n
history_list = []\n
\n
-simulation_state = context.getPortalCurrentInventoryStateList() \\\n
- + context.getPortalTransitInventoryStateList() \\\n
- + context.getPortalReservedInventoryStateList()\n
+simulation_state = portal.getPortalCurrentInventoryStateList() \\\n
+ + portal.getPortalTransitInventoryStateList() \\\n
+ + portal.getPortalReservedInventoryStateList()\n
\n
kw[\'item.simulation_state\'] = simulation_state\n
for res in method(aggregate_uid=uid, **kw):\n
@@ -134,6 +135,7 @@ return history_list\n
<string>newTempBase</string>
<string>_getattr_</string>
<string>context</string>
+ <string>portal</string>
<string>catalog</string>
<string>method</string>
<string>uid</string>
@@ -151,8 +153,7 @@ return history_list\n
<string>section_value</string>
<string>resource_value</string>
<string>None</string>
- <string>append</string>
- <string>$append0</string>
+ <string>$list0</string>
<string>x</string>
<string>_getitem_</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_item/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/bt/revision?rev=41281&r1=41280&r2=41281&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_item/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/bt/revision [utf8] Thu Dec 9 17:11:50 2010
@@ -1 +1 @@
-236
\ No newline at end of file
+237
\ No newline at end of file
More information about the Erp5-report
mailing list