Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
04fa3aa1
Commit
04fa3aa1
authored
Jul 29, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use directly portal_notifications tool.
Return result of redirect call as it's used in testERP5Credential.
parent
13426916
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_sendAcceptedNotification.xml
...credential/CredentialRequest_sendAcceptedNotification.xml
+3
-6
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
..._skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
...l_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
...ns/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
+1
-1
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_sendAcceptedNotification.xml
View file @
04fa3aa1
...
...
@@ -52,11 +52,7 @@
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
Send an email after accept a credential request\n
Proxy: Assignee, Assignor, Member -- allow to send notification by mail\n
\n
Example of notification message:\n
Congratulation, the creation of you new Instance Name account \'${login_name}\' is finished.\\nYour password is \'${login_password}\'\\nThank you"))\n
Congratulation, the creation of you new Instance Name account \'${user_id}\' is finished.\\n\\nThank you",\n
Proxy: Assignee, Assignor, Member -- allow to send notification by mail.\n
"""\n
\n
portal = context.getPortalObject()\n
...
...
@@ -70,7 +66,8 @@ if password:\n
\n
#Get message from catalog\n
notification_reference = \'crendential_request-confirmation-%s\' % notification_type\n
notification_message = context.NotificationTool_getDocumentValue(reference=notification_reference, language=recipient.getLanguage())\n
notification_message = portal.portal_notifications.getDocumentValue(reference=notification_reference, \n
language=recipient.getLanguage())\n
if notification_message is None:\n
raise ValueError, \'Unable to found Notification Message with reference "%s".\' % notification_reference\n
\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
View file @
04fa3aa1
...
...
@@ -100,7 +100,7 @@ else:\n
\'reference\': reference}\n
\n
keep_items[\'portal_status_message\'] = portal.Base_translateString(message)\n
portal.Base_redirect(form_id=\'login_form\', keep_items=keep_items)\n
return
portal.Base_redirect(form_id=\'login_form\', keep_items=keep_items)\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
View file @
04fa3aa1
...
...
@@ -121,7 +121,7 @@ else:\n
message_str = "Credential Request Created."\n
\n
\n
portal.Base_redirect(form_id=\'login_form\', \n
return
portal.Base_redirect(form_id=\'login_form\', \n
keep_items = dict(portal_status_message=context.Base_translateString(message_str)))\n
</string>
</value>
</item>
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
View file @
04fa3aa1
...
...
@@ -92,7 +92,7 @@ else:\n
\n
portal_status_message = context.Base_translateString("Credential Update Created.")\n
\n
portal.Base_redirect(keep_items = {\'portal_status_message\': portal_status_message})\n
return
portal.Base_redirect(keep_items = {\'portal_status_message\': portal_status_message})\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_credential/bt/revision
View file @
04fa3aa1
382
\ No newline at end of file
383
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment