Show More
@@ -330,6 +330,11 b' EMAIL_COMMENT_STATUS_CHANGE_SUBJECT_TEMP' | |||||
330 | # Title of email for inline comment on a file in commit |
|
330 | # Title of email for inline comment on a file in commit | |
331 | EMAIL_COMMENT_FILE_SUBJECT_TEMPLATE = '' |
|
331 | EMAIL_COMMENT_FILE_SUBJECT_TEMPLATE = '' | |
332 |
|
332 | |||
|
333 | import cssutils | |||
|
334 | # hijack css utils logger and replace with ours | |||
|
335 | log = logging.getLogger('rhodecode.cssutils.premailer') | |||
|
336 | cssutils.log.setLog(log) | |||
|
337 | ||||
333 |
|
338 | |||
334 | class EmailNotificationModel(BaseModel): |
|
339 | class EmailNotificationModel(BaseModel): | |
335 | TYPE_COMMIT_COMMENT = Notification.TYPE_CHANGESET_COMMENT |
|
340 | TYPE_COMMIT_COMMENT = Notification.TYPE_CHANGESET_COMMENT | |
@@ -373,11 +378,7 b' class EmailNotificationModel(BaseModel):' | |||||
373 | 'rhodecode:templates/email_templates/pull_request_update.mako', |
|
378 | 'rhodecode:templates/email_templates/pull_request_update.mako', | |
374 | } |
|
379 | } | |
375 |
|
380 | |||
376 | premailer_instance = premailer.Premailer( |
|
381 | premailer_instance = premailer.Premailer() | |
377 | cssutils_logging_level=logging.ERROR, |
|
|||
378 | cssutils_logging_handler=logging.getLogger().handlers[0] |
|
|||
379 | if logging.getLogger().handlers else None, |
|
|||
380 | ) |
|
|||
381 |
|
382 | |||
382 | def __init__(self): |
|
383 | def __init__(self): | |
383 | """ |
|
384 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now