Commit 47df7f9d authored by Nicolas Delaby's avatar Nicolas Delaby

Extend script to ease its usage with specific use case (like edit text_content...

Extend script to ease its usage with specific use case (like edit text_content in dialog or pass some workflow transitions)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24289016
......@@ -109,11 +109,15 @@ event_kw[\'destination\'] = destination_url\n
event_kw[\'destination_section\'] = destination_section_url\n
event_kw[\'start_date\'] = start_date\n
event_kw[\'follow_up\'] = follow_up\n
event_kw[\'text_content\'] = text_content\n
\n
# Create event\n
module = portal.getDefaultModule(portal_type=portal_type)\n
event = module.newContent(**event_kw)\n
\n
if batch_mode:\n
return event\n
\n
message = portal.Base_translateString(\'New event created.\')\n
\n
event.Base_redirect(keep_items={\'portal_status_message\': message})\n
......@@ -121,7 +125,7 @@ event.Base_redirect(keep_items={\'portal_status_message\': message})\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>title, direction, portal_type, resource, **kw</string> </value>
<value> <string>title, direction, portal_type, resource, text_content=None, batch_mode=False, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
529
\ No newline at end of file
530
\ 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