projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2776ec9
)
Quote key name for config_get()
author
Bernie Innocenti
<bernie@codewiz.org>
Wed, 19 Aug 2009 10:19:50 +0000
(12:19 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Wed, 19 Aug 2009 10:19:50 +0000
(12:19 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 4569894255a653ab73d6312e6a7f62354808ed0d..4ae17b2996fa0da6f7a0b336c7a1df8a69f81e7d 100755
(executable)
--- 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 = {
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("</body></html>")
})
print("</body></html>")
@@
-671,7
+671,7
@@
class Page:
for filename in page_list(self._filename(), file_re):
if image_re.match(filename):
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'
if maxwidth:
maxwidth = ' | maxwidth=' + str(maxwidth)
out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n'