FLOSS Manuals

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Plumi Id

Plumi: EmailNotifications


Mengkofigurasi Notifikasi Email -

Menampilkan Alur Kerja

Setiap kali konten diserahkan, ditampilkan, ditarik kembali, atau dikembalikan (lihat bab alur kerja) email dikirimkan kepada pemilik konten dan/atau Pengulas


Anda dapat mengubah teks email melalui file di bawah ini :

$ vi src/plumi.content/plumi/content/adapters.py

Disini Anda dapat menavigasikan ke, misalnya, definisi teks yang dikirimkan kepada pemilik konten saat video mereka dikirimkan untuk ditampilkan (teks dalam tanda kurung), dan membuat
perubahan yang dianggap perlu:

  

 def notifyOwnerVideoSubmitted(self):
""" Email the owner of the submitted video """
logger = logging.getLogger('plumi.content.adapters')
#IPlumiVideo implementing objects only
if IPlumiVideo.providedBy(self.context):

obj_title=self.context.Title()
creator=self.context.Creator()
obj_url=self.context.absolute_url()
membr_tool = getToolByName(self.context,'portal_membership')
member=membr_tool.getMemberById(creator)
mTo = member.getProperty('email',None)
if mTo is not None and mTo is not '':
mMsg = 'Hi %s \nYour contribution has been submitted for review before publishing on the site\n' % member.getProperty('fullname', creator)
mMsg += 'Title: %s\n\n' % obj_title
mMsg += '%s/view \n\n' % obj_url
urltool = getToolByName(self.context, 'portal_url')
portal = urltool.getPortalObject()
mFrom = portal.getProperty('email_from_address')
mSubj = 'Your contribution : %s : was submitted for review.' % obj_title
logger.info('notifyOwnerVideoSubmitted')
#send email to object owner
try:
logger.info('notifyOwnerVideoSubmitted , im %s - sending email to %s from %s ' % (self.context, mTo, mFrom) )
self.context.MailHost.send(mMsg, mTo, mFrom, mSubj)
except:
logger.error('Didnt actually send email! Something amiss with SecureMailHost.')
pass

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.