Changes between Version 8 and Version 9 of S3/Notifications
- Timestamp:
- 09/05/13 10:52:36 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/Notifications
v8 v9 60 60 - Rendering via web2py view templates (message templates) 61 61 62 The pre-rendering is to convert the extracted data into a suitable format for the message template. The pre-rendering routine is configurable both per deployment-template and per resource (resource-specific overrides deployment-specific), the default pre-renderer is S3Notifications._render().62 The pre-rendering is to convert the extracted data into a suitable format for the message template. The pre-rendering routine is configurable both per deployment-template and per resource (resource-specific overrides deployment-specific), the default pre-renderer is {{{S3Notifications._render()}}}. 63 63 64 The message templates are web2py view templates stored in private/template/XYZ/views/msg (falling back to views/msg).64 The message templates are '''web2py view templates''' stored in ''private/template/XYZ/views/msg'' (falling back to ''views/msg''). 65 65 66 Template names use a prefix (default: "notify"), and the notification method name, like: notify_email.html(=template for email notifications).66 Template names use a '''prefix''' (default: "notify") and the notification method name, like: ''notify_email.html'' (=template for email notifications). 67 67 68 Message templates for EMAIL can further use a format suffix "html" or "text" (e.g. "notify_email_html.html") - where both fall back to the name without suffix.68 The template name '''prefix''' can be configured '''per resource''' (using the "notify_template" setting), the default is "notify". 69 69 70 The template name prefix can be configured per resource (using the "notify_template" setting), the default is "notify".70 Message templates for '''EMAIL''' can further use a '''format''' suffix "html" or "text" (e.g. ''notify_email_html.html'') - where both fall back to the name without suffix. 71 71 72 Any deployment-template-specific message template (including fallbacks) is preferred over any default templates.72 Any deployment-template-specific message templates (including fallbacks) is preferred over any default templates. 73 73 74 74 === Configuration ===