From ca522e386cb33398bfd11d8edf95ed897e026aaf Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 14 Oct 2009 23:51:43 +1300 Subject: [PATCH] documentation and tidying --- objavi.cgi | 1 - objavi/config.py | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/objavi.cgi b/objavi.cgi index 0e372f1..807c893 100755 --- a/objavi.cgi +++ b/objavi.cgi @@ -29,7 +29,6 @@ from objavi.fmbook import log, Book, ZipBook, make_book_name from objavi import config from objavi.cgi_utils import parse_args, optionise, listify, shift_file from objavi.cgi_utils import output_blob_and_exit - from objavi.twiki_wrapper import get_book_list FORM_TEMPLATE = os.path.abspath('templates/form.html') diff --git a/objavi/config.py b/objavi/config.py index 8ba332c..2a2b41b 100644 --- a/objavi/config.py +++ b/objavi/config.py @@ -76,8 +76,9 @@ RTL_SCRIPTS = ['persian', 'arabic', 'hebrew', 'urdu'] USE_CACHED_IMAGES = False -USE_TAGS_FOR_CONTENTS = False - +#Normally, Book objects try to shutdown subprocesses and clean up temp +#files when they __exit__. This flag makes them try when they __del__ +#too (i.e. when they are garbage collected). TRY_BOOK_CLEANUP_ON_DEL = False LOCALHOST = 'localhost' @@ -392,7 +393,6 @@ DC = "http://purl.org/dc/elements/1.1/" XHTMLNS = '{http://www.w3.org/1999/xhtml}' XHTML = 'http://www.w3.org/1999/xhtml' - S3_SECRET = '/home/douglas/s3.archive.org-secret' S3_ACCESSKEY = '/home/douglas/s3.archive.org-accesskey' @@ -402,5 +402,6 @@ S3_ACCESSKEY = '/home/douglas/s3.archive.org-accesskey' + if __name__ == '__main__': print ', '.join(x for x in globals().keys() if not x.startswith('_')) -- 2.11.4.GIT