Ticket #231: email2trac-r494.patch
File email2trac-r494.patch, 1.5 KB (added by dmcr@…, 13 years ago) |
---|
-
email2trac.py.in
old new 578 578 579 579 def print_unicode(self,s): 580 580 """ 581 This function prints unicode strings uif possible else it will quote it581 This function prints unicode strings if possible else it will quote it 582 582 """ 583 583 try: 584 584 self.logger.debug(s) … … 1319 1319 from tracdiscussion.api import DiscussionApi 1320 1320 from trac.util.datefmt import to_timestamp, utc 1321 1321 1322 self.logg ger.debug('Replying to discussion message', self.id)1322 self.logger.debug('Replying to discussion message', self.id) 1323 1323 1324 1324 ## Get dissussion API component. 1325 1325 # … … 1377 1377 req.tz = 'missing' 1378 1378 req.authname = self.author 1379 1379 req.perm = PermissionCache(self.env, self.author) 1380 req.locale = None 1380 1381 1381 1382 ## Create and return context. 1382 1383 # … … 1532 1533 # 1533 1534 discussion_enabled = None 1534 1535 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') 1536 1538 discussion_enabled = True 1537 1539 discussion_regex = r''' 1538 1540 |(?P<forum>Forum[ ][#](?P<forum_id>\d+)[ ]-[ ]?) … … 2180 2182 2181 2183 if (parameters.log_level in ['DEBUG', 'ALL']) or (parameters.debug > 0): 2182 2184 logger.setLevel(logging.DEBUG) 2185 parameters.debug = 1 2183 2186 2184 2187 elif parameters.log_level in ['INFO'] or parameters.verbose: 2185 2188 logger.setLevel(logging.INFO)