datatracker/ietf/bin/expire-ids
Ole Laursen 742dbace24 Move views and templatetags from idrfc/ to doc, the I-D specific views
go into views_draft.py and tests in tests_draft.py; what's left in
idrfc is wrapper code, templates and the ballot_icon templatetag
 - Legacy-Id: 6051
2013-08-14 10:32:25 +00:00

22 lines
533 B
Python
Executable file

#!/usr/bin/env python
import datetime, os
import syslog
from ietf import settings
from django.core import management
management.setup_environ(settings)
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
from ietf.doc.expire import *
if not in_draft_expire_freeze():
for doc in get_expired_drafts():
send_expire_notice_for_draft(doc)
expire_draft(doc)
syslog.syslog("Expired draft %s-%s" % (doc.name, doc.rev))
syslog.syslog("Cleaning up draft files")
clean_up_draft_files()