From: Bernie Innocenti Date: Wed, 19 Aug 2009 10:19:50 +0000 (+0200) Subject: Quote key name for config_get() X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d27457c46810dade7c3fdbc38c1e0e8e8be424c6;p=geekigeeki.git Quote key name for config_get() --- diff --git a/geekigeeki.py b/geekigeeki.py index 4569894..4ae17b2 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -345,7 +345,7 @@ def send_footer(mtime=None): cgi.print_form(form) cgi.print_environ() link_inline("sys/footer", kvargs = { - 'LAST_MODIFIED': strftime(config_get(datetime_fmt, '%a %d %b %Y %I:%M %p'), localtime(mtime)) + 'LAST_MODIFIED': strftime(config_get('datetime_fmt', '%a %d %b %Y %I:%M %p'), localtime(mtime)) }) print("") @@ -671,7 +671,7 @@ class Page: for filename in page_list(self._filename(), file_re): if image_re.match(filename): - maxwidth = config_get(image_maxwidth, '') + maxwidth = config_get('image_maxwidth', '400') if maxwidth: maxwidth = ' | maxwidth=' + str(maxwidth) out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n'