Modify

Opened 11 years ago

Last modified 7 years ago

#11278 new enhancement

Allow for email template files

Reported by: anonymous Owned by: ejucovy
Priority: normal Component: WorkflowNotificationPlugin
Severity: normal Keywords:
Cc: ntmlod Trac Release: 0.12

Description

I would like to see the ability to specify template files for .body similar to this:

notify_reporter_accepted.body = Template[notify_reporter_accepted.txt]

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by ethan.jucovy@…

I'd love to have this feature.

I think I would prefer to spell it more like:

notify_reporter_accepted.body = notify_reporter_accepted.txt
notify_reporter_accepted.body.source = file  # either "file" or "string" (the default)

The code would be simpler that way, and would also leave room for future expansion (e.g. getting templates from wiki page contents or files in version control)

I think a global setting would also be useful:

default_template_source = file 

I'm not sure when I'll have a chance to implement this myself, but a patch would be very welcome.

comment:2 Changed 7 years ago by ntmlod

Cc: ntmlod added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain ejucovy.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.