Commit 78ad7693 authored by Sebastien Robin's avatar Sebastien Robin

added init script on counter date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12586 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5cfdbb70
......@@ -96,7 +96,7 @@
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></string> </value>
<value> <string>CounterDate_init</string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
......
......@@ -68,7 +68,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.setProperty(\'isDelivery\', 1)\n
<value> <string>site = context.Baobab_getVaultSite(context.Baobab_getUserAssignedSiteList()[0])\n
site_url = site.getRelativeUrl()\n
context.setSite(site_url)\n
\n
from DateTime import DateTime\n
context.setStartDate(DateTime())\n
</string> </value>
</item>
<item>
......@@ -120,6 +125,10 @@
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>_getitem_</string>
<string>site</string>
<string>site_url</string>
<string>DateTime</string>
</tuple>
</value>
</item>
......
122
\ No newline at end of file
124
\ 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