system exit on comment approval
This commit is contained in:
parent
d7b8a6bd2d
commit
e12c23f0ad
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import os
|
||||
import logging
|
||||
import re
|
||||
|
@ -209,6 +210,8 @@ def reply_comment_email(data):
|
|||
notify_subscribed_readers(
|
||||
comment.site.token, comment.site.url, comment.url)
|
||||
|
||||
# system quit
|
||||
system_quit()
|
||||
|
||||
def late_reject_comment(id):
|
||||
|
||||
|
@ -460,6 +463,10 @@ def get_processor():
|
|||
return proc
|
||||
|
||||
|
||||
def system_quit():
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
def start(template_dir):
|
||||
global proc, env
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue