Commit 6d286dea authored by Yusei Tahara's avatar Yusei Tahara

2008-06-06 yusei

* In Event_send, invoke transition only when portal type is available (it means crm portal types are installed).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96a57411
...@@ -67,12 +67,6 @@ ...@@ -67,12 +67,6 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
# Transit event workflow\n
if \'event_workflow\' in context.portal_workflow.getWorkflowsFor(context):\n
context.plan()\n
context.order()\n
context.start()\n
\n
if body is None:\n if body is None:\n
body = context.getTextContent() #XXX This does not support structured text format.\n body = context.getTextContent() #XXX This does not support structured text format.\n
\n \n
...@@ -145,6 +139,12 @@ for to_url in to_url_list:\n ...@@ -145,6 +139,12 @@ for to_url in to_url_list:\n
\n \n
context.setData(mail_message)\n context.setData(mail_message)\n
\n \n
# Transit event workflow\n
if context.getTypeInfo() is not None:\n
context.plan()\n
context.order()\n
context.start()\n
\n
if download:\n if download:\n
return mail_message\n return mail_message\n
...@@ -206,9 +206,9 @@ if download:\n ...@@ -206,9 +206,9 @@ if download:\n
<string>attachment_list</string> <string>attachment_list</string>
<string>download</string> <string>download</string>
<string>kw</string> <string>kw</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string>
<string>sender</string> <string>sender</string>
<string>additional_headers</string> <string>additional_headers</string>
<string>to_url_list</string> <string>to_url_list</string>
......
2008-06-06 yusei
* In Event_send, invoke transition only when portal type is available (it means crm portal types are installed).
2008-06-04 2008-06-04
* Add rights for manager in : * Add rights for manager in :
sale_opportunity_workflow : Contacted, Cancelled sale_opportunity_workflow : Contacted, Cancelled
......
258 259
\ 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