Add a default notification message for password recovery.

Add a specific substitution method.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45685 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99b3eff1
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Notification Message" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>2c77d20542feb73e99d6e2f219317ff4</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/plain</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>crendential_recovery-reset-link</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>20110426-1B7D</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value> <string>en</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Notification Message</string> </value>
</item>
<item>
<key> <string>text_content</string> </key>
<value> <string>You have requested the renewal of your password.\n
Please copy and paste the following link into your browser:\n
\n
${reset_password_link} \n
\n
Please note that this link will be valid once, until ${expiration_date}.\n
After that date, or after using this link, a new request is required.\n
\n
Thank you</string> </value>
</item>
<item>
<key> <string>text_content_substitution_mapping_method_id</string> </key>
<value> <string>NotificationMessage_getSubstitutionFromPasswordReset</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>[ERP5] Password Recovery</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>001</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""Use information given in the method mailPasswordResetRequest of Password Tool\n
to build a substitution mapping dict. \n
Parameters: \n
instance_name -- Current erp5 portal title\n
reset_password_link -- Url to reset the password\n
expiration_date -- Expiration Datetime of the link"""\n
return {\'reset_password_link\':reset_password_link,\n
\'expiration_date\': context.Base_FormatDate(date=expiration_date,\n
hour_minute = True,\n
seconds = False)}\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>instance_name, reset_password_link, expiration_date</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>NotificationMessage_getSubstitutionFromPasswordReset</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
328
\ No newline at end of file
329
\ No newline at end of file
notification_message_module/20100928-1F79
notification_message_module/20100928-212A
notification_message_module/20100928-7459
notification_message_module/20110426-1B7D
portal_alarms/accept_submitted_credentials
portal_categories/question
portal_categories/question/credential
......
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