Example #1
0
    def testSpecialCharacterIssueEmail(self):
        self.tracker.setSendNotificationEmailsTo(
            ([option[0] for option in EMAIL_OPTIONS]))
        self.tracker.update(title='Random Tracker')
        issue = self.createIssue(self.tracker,
                                 title="accented vocals: à è ì",
                                 contactEmail='*****@*****.**',
                                 watchers=('member1', 'member2'))
        issue.sendNotificationMail()
        response = self.createResponse(issue, text="more accented vocals: ò ù")
        sendResponseNotificationMail(issue, response)

        # Now try a different charset
        pprop = getToolByName(self.portal, 'portal_properties')
        site_props = getToolByName(pprop, 'site_properties')
        site_props.default_charset = 'iso-8859-1'
        self.portal.email_charset = 'iso-8859-1'
        issue = self.createIssue(
            self.tracker,
            title=u"accented vocals: à è ì ò ù".encode('iso-8859-1'),
            contactEmail='*****@*****.**',
            watchers=('member1', 'member2'))
        issue.sendNotificationMail()
        response = self.createResponse(
            issue, text=u"more accented vocals: ò ù".encode('iso-8859-1'))
        sendResponseNotificationMail(issue, response)
Example #2
0
    def testSpecialCharacterIssueEmail(self):
        self.tracker.setSendNotificationEmails(True)
        self.tracker.update(title='Random Tracker')
        issue = self.createIssue(
            self.tracker,
            title="accented vocals: à è ì",
            contactEmail='*****@*****.**',
            watchers=('member1', 'member2'))
        self.createResponse(
            issue, text="more accented vocals: ò ù")
        sendResponseNotificationMail(issue)

        # Now try a different charset
        pprop = getToolByName(self.portal, 'portal_properties')
        site_props = getToolByName(pprop, 'site_properties')
        site_props.default_charset = 'iso-8859-1'
        self.portal.email_charset = 'iso-8859-1'
        issue = self.createIssue(
            self.tracker,
            title=u"accented vocals: à è ì ò ù".encode('iso-8859-1'),
            contactEmail='*****@*****.**',
            watchers=('member1', 'member2'))
        self.createResponse(
            issue, text=u"more accented vocals: ò ù".encode('iso-8859-1'))
        sendResponseNotificationMail(issue)
Example #3
0
 def testNewResponseEmail(self):
     self.tracker.setSendNotificationEmails(True)
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=('member1', 'member2'))
     self.createResponse(issue)
     sendResponseNotificationMail(issue)
Example #4
0
 def testNewResponseEmail(self):
     self.tracker.setSendNotificationEmails(True)
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=('member1', 'member2'))
     self.createResponse(issue)
     sendResponseNotificationMail(issue)
Example #5
0
 def testNewResponseEmail(self):
     self.tracker.notification_emails = True
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=[u'member1', u'member2'])
     self.createResponse(issue)
     sendResponseNotificationMail(issue)
Example #6
0
 def testNewResponseEmail(self):
     self.tracker.notification_emails = True
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=[u'member1', u'member2'])
     self.createResponse(issue)
     sendResponseNotificationMail(issue)
Example #7
0
 def testNewResponseEmail(self):
     self.tracker.setSendNotificationEmailsTo(([option[0] for option in EMAIL_OPTIONS]))
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=('member1', 'member2'))
     response = self.createResponse(issue)
     sendResponseNotificationMail(issue, response)
Example #8
0
 def testNewResponseEmail(self):
     self.tracker.setSendNotificationEmailsTo(
         ([option[0] for option in EMAIL_OPTIONS]))
     self.tracker.update(title='Random Tracker')
     issue = self.createIssue(self.tracker,
                              contactEmail='*****@*****.**',
                              watchers=('member1', 'member2'))
     response = self.createResponse(issue)
     sendResponseNotificationMail(issue, response)
Example #9
0
    def testSpecialCharacterIssueEmail(self):
        self.tracker.setSendNotificationEmails(True)
        self.tracker.update(title='Random Tracker')
        issue = self.createIssue(self.tracker,
                                 title="accented vocals: à è ì",
                                 contactEmail='*****@*****.**',
                                 watchers=('member1', 'member2'))
        self.createResponse(issue, text="more accented vocals: ò ù")
        sendResponseNotificationMail(issue)

        # Now try a different charset
        self.portal.email_charset = 'iso-8859-1'
        issue = self.createIssue(
            self.tracker,
            title=u"accented vocals: à è ì ò ù".encode('utf-8'),
            contactEmail='*****@*****.**',
            watchers=('member1', 'member2'))
        self.createResponse(
            issue, text=u"more accented vocals: ò ù".encode('iso-8859-1'))
        sendResponseNotificationMail(issue)
Example #10
0
    def testSpecialCharacterIssueEmail(self):
        self.tracker.notification_emails = True
        self.tracker.update(title='Random Tracker')
        issue = self.createIssue(
            self.tracker,
            title="accented vowels: à è ì",
            contactEmail='*****@*****.**',
            watchers=[u'member1', u'member2'])
        self.createResponse(
            issue, text="more accented vowels: ò ù")
        sendResponseNotificationMail(issue)

        # Now try a different charset
        self.portal.email_charset = 'iso-8859-1'
        issue = self.createIssue(
            self.tracker,
            title=u"accented vowels: à è ì ò ù".encode('utf-8'),
            contactEmail='*****@*****.**',
            watchers=[u'member1', u'member2'])
        self.createResponse(
            issue, text=u"more accented vowels: ò ù".encode('iso-8859-1'))
        sendResponseNotificationMail(issue)