Ticket #231: email2trac-r494.patch

File email2trac-r494.patch, 1.5 KB (added by dmcr@…, 13 years ago)

Added by email2trac

  • email2trac.py.in

    old new  
    578578
    579579        def print_unicode(self,s):
    580580                """
    581                 This function prints unicode strings uif possible else it will quote it
     581                This function prints unicode strings if possible else it will quote it
    582582                """
    583583                try:
    584584                        self.logger.debug(s)
     
    13191319                from tracdiscussion.api import DiscussionApi
    13201320                from trac.util.datefmt import to_timestamp, utc
    13211321
    1322                 self.loggger.debug('Replying to discussion message', self.id)
     1322                self.logger.debug('Replying to discussion message', self.id)
    13231323
    13241324                ## Get dissussion API component.
    13251325                #
     
    13771377                req.tz = 'missing'
    13781378                req.authname = self.author
    13791379                req.perm = PermissionCache(self.env, self.author)
     1380                req.locale = None
    13801381
    13811382                ## Create and return context.
    13821383                #
     
    15321533                #
    15331534                discussion_enabled = None
    15341535                discussion_regex = ''
    1535                 if self.get_config('components', 'tracdiscussion.api.*') in ['enabled']:
     1536                if self.get_config('components', 'tracdiscussion.api.discussionapi') in ['enabled']:
     1537                        self.logger.debug('Trac Discussion support enabled')
    15361538                        discussion_enabled = True
    15371539                        discussion_regex = r'''
    15381540                        |(?P<forum>Forum[ ][#](?P<forum_id>\d+)[ ]-[ ]?)
     
    21802182
    21812183        if (parameters.log_level in ['DEBUG', 'ALL']) or (parameters.debug > 0):
    21822184                logger.setLevel(logging.DEBUG)
     2185                parameters.debug = 1
    21832186
    21842187        elif parameters.log_level in ['INFO'] or parameters.verbose:
    21852188                logger.setLevel(logging.INFO)