Commit 990ccb00 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-02-27 mame

* change it back to current tracking list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25744 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 962aed5b
......@@ -56,7 +56,7 @@
<value> <string>from DateTime import DateTime\n
\n
date = DateTime()\n
last_affectation = context.portal_simulation.getTrackingList(item=context.getRelativeUrl(), at_date=date)\n
last_affectation = context.portal_simulation.getCurrentTrackingList(item=context.getRelativeUrl(), at_date=date)\n
\n
if len(last_affectation) == 0:\n
return None\n
......
......@@ -9,22 +9,10 @@
</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>
......@@ -85,18 +73,6 @@ return None\n
<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></string> </value>
......
......@@ -53,8 +53,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.log(context.Item_getResourceValue())\n
if context.Item_getResourceValue() is not None:\n
<value> <string>if context.Item_getResourceValue() is not None:\n
return context.Item_getResourceValue().getTitle()\n
return \'\'\n
</string> </value>
......
......@@ -58,7 +58,7 @@
#kw[\'at_date\'] = DateTime()\n
kw[\'item\'] = context.getRelativeUrl()\n
\n
last_affectation_list = context.portal_simulation.getTrackingList(**kw)\n
last_affectation_list = context.portal_simulation.getCurrentTrackingList(**kw)\n
\n
if kw.get(\'src__\',0):\n
return last_affectation_list\n
......
58
\ No newline at end of file
59
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment