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 @@ ...@@ -54,8 +54,11 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""Create sub object for Foo"""\n <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 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 \n
return \'Created Successfully.\'\n return \'Created Successfully.\'\n
</string> </value> </string> </value>
...@@ -96,12 +99,15 @@ return \'Created Successfully.\'\n ...@@ -96,12 +99,15 @@ return \'Created Successfully.\'\n
<tuple> <tuple>
<string>start</string> <string>start</string>
<string>num</string> <string>num</string>
<string>DateTime</string>
<string>date</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>range</string> <string>range</string>
<string>i</string> <string>i</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>str</string> <string>str</string>
<string>_inplacevar_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
517 518
\ No newline at end of file \ 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