[Erp5-report] r45685 fx.algrain - in /erp5/trunk/bt5/erp5_credential: PathTemplateItem/noti...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 26 10:54:15 CEST 2011
Author: fx.algrain
Date: Tue Apr 26 10:54:15 2011
New Revision: 45685
URL: http://svn.erp5.org?rev=45685&view=rev
Log:
Add a default notification message for password recovery.
Add a specific substitution method.
Added:
erp5/trunk/bt5/erp5_credential/PathTemplateItem/notification_message_module/20110426-1B7D.xml
erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/NotificationMessage_getSubstitutionFromPasswordReset.xml
Modified:
erp5/trunk/bt5/erp5_credential/bt/revision
erp5/trunk/bt5/erp5_credential/bt/template_path_list
Added: erp5/trunk/bt5/erp5_credential/PathTemplateItem/notification_message_module/20110426-1B7D.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/PathTemplateItem/notification_message_module/20110426-1B7D.xml?rev=45685&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_credential/PathTemplateItem/notification_message_module/20110426-1B7D.xml (added)
+++ erp5/trunk/bt5/erp5_credential/PathTemplateItem/notification_message_module/20110426-1B7D.xml [utf8] Tue Apr 26 10:54:15 2011
@@ -0,0 +1,123 @@
+<?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>
Added: erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/NotificationMessage_getSubstitutionFromPasswordReset.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/NotificationMessage_getSubstitutionFromPasswordReset.xml?rev=45685&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/NotificationMessage_getSubstitutionFromPasswordReset.xml (added)
+++ erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/NotificationMessage_getSubstitutionFromPasswordReset.xml [utf8] Tue Apr 26 10:54:15 2011
@@ -0,0 +1,76 @@
+<?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>
Modified: erp5/trunk/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/revision?rev=45685&r1=45684&r2=45685&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/revision [utf8] Tue Apr 26 10:54:15 2011
@@ -1 +1 @@
-328
\ No newline at end of file
+329
\ No newline at end of file
Modified: erp5/trunk/bt5/erp5_credential/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/template_path_list?rev=45685&r1=45684&r2=45685&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/template_path_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/template_path_list [utf8] Tue Apr 26 10:54:15 2011
@@ -1,6 +1,7 @@
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
More information about the Erp5-report
mailing list