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