Commit 640efdaa authored by Fabien Morin's avatar Fabien Morin

fix a mistake in a script and put sendNotificationByMail script in activity script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24619 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 861068b7
...@@ -24,15 +24,15 @@ ...@@ -24,15 +24,15 @@
<item> <item>
<key> <string>activate_script_name</string> </key> <key> <string>activate_script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>sendNotificationByMail</string>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>sendNotificationByMail</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -70,7 +70,7 @@ subject = translateString("Your application has been submitted successfully unde ...@@ -70,7 +70,7 @@ subject = translateString("Your application has been submitted successfully unde
msg.append(subject)\n msg.append(subject)\n
msg.append(translateString("An Agent will review your application shortly. You will be notified by email whenever your application will start being processed. To further track your application, connect and login any time to the following site"))\n msg.append(translateString("An Agent will review your application shortly. You will be notified by email whenever your application will start being processed. To further track your application, connect and login any time to the following site"))\n
msg.append(context.getWebSiteValue().getAbsoluteUrl())\n msg.append(context.getWebSiteValue().getAbsoluteUrl())\n
msg.append(translateString("And use the login") + " : " + form.getReference()\n msg.append(translateString("And use the login") + " : " + form.getReference())\n
msg.append(translateString("and the password") + " : " + form.getPassword())\n msg.append(translateString("and the password") + " : " + form.getPassword())\n
\n \n
msg = "\\n".join(msg)\n msg = "\\n".join(msg)\n
...@@ -104,9 +104,7 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n ...@@ -104,9 +104,7 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
<tuple> <tuple/>
<string>invalid syntax (Script (Python), line 19)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -121,12 +119,25 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n ...@@ -121,12 +119,25 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple/> <tuple>
<string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>_getattr_</string>
<string>context</string>
<string>translateString</string>
<string>portal_catalog</string>
<string>_getitem_</string>
<string>form</string>
<string>msg</string>
<string>subject</string>
<string>True</string>
</tuple>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -137,7 +148,7 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n ...@@ -137,7 +148,7 @@ context.portal_notifications.sendMessage(recipient=form.getReference(), \n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple/> <none/>
</value> </value>
</item> </item>
<item> <item>
......
451 453
\ 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