Commit cb733f46 authored by Łukasz Nowak's avatar Łukasz Nowak

- Foos are with dates, so set it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f75226a
......@@ -54,8 +54,11 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""Create sub object for Foo"""\n
from DateTime import DateTime\n
date = DateTime(\'2009/01/01\')\n
for i in range(start, start + num):\n
context.newContent(id = str(i), title = \'Title %d\' % i)\n
context.newContent(id = str(i), title = \'Title %d\' % i, start_date = date)\n
date += 1\n
\n
return \'Created Successfully.\'\n
</string> </value>
......@@ -96,12 +99,15 @@ return \'Created Successfully.\'\n
<tuple>
<string>start</string>
<string>num</string>
<string>DateTime</string>
<string>date</string>
<string>_getiter_</string>
<string>range</string>
<string>i</string>
<string>_getattr_</string>
<string>context</string>
<string>str</string>
<string>_inplacevar_</string>
</tuple>
</value>
</item>
......
517
\ No newline at end of file
518
\ 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