add optional mailtoDelimiter param for Mailto Action url gen
This commit is contained in:
parent
7a3f956670
commit
1584568e0a
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ class MailToAction(TargetAction):
|
|||
targetWindow = 'blank'
|
||||
bodyAttribute = 'description'
|
||||
subjectAttribute = 'title'
|
||||
mailToDelimiter = ', '
|
||||
|
||||
@Lazy
|
||||
def url(self):
|
||||
|
|
@ -32,7 +33,7 @@ class MailToAction(TargetAction):
|
|||
for receiver in getattr(target, self.receivers):
|
||||
if receiver.email:
|
||||
if prefix:
|
||||
mailto += ', '
|
||||
mailto += self.mailToDelimiter
|
||||
mailto += receiver.email
|
||||
prefix = True
|
||||
subject = getattr(target, self.subjectAttribute, '')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue