X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=geekigeeki.py;h=854c715dc50d834529bc76f164c34c1cc83323cd;hb=8bfb01a3223d8ab205a28968703831fc17fba04a;hp=0607006331db081e90b43ceab3430f6bac4726d3;hpb=666cc43781cace3f5a662a6403bee97c46a5c3a7;p=geekigeeki.git
diff --git a/geekigeeki.py b/geekigeeki.py
index 0607006..854c715 100755
--- a/geekigeeki.py
+++ b/geekigeeki.py
@@ -3,7 +3,7 @@
#
# Copyright 1999, 2000 Martin Pool
# Copyright 2002 Gerardo Poggiali
-# Copyright 2007, 2008 Bernardo Innocenti
+# Copyright 2007, 2008 Bernie Innocenti
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -248,8 +248,8 @@ def make_index_key():
links = map(lambda ch: '%s' % (ch, ch), 'abcdefghijklmnopqrstuvwxyz')
return ''+ ' | '.join(links) + '
'
-def page_list():
- return filter(word_re.match, os.listdir(data_dir))
+def page_list(dir = None, re = word_re):
+ return filter(re.match, os.listdir(dir or data_dir))
def send_footer(name, mod_string=None):
if globals().get('debug_cgi', False):
@@ -264,7 +264,7 @@ def send_footer(name, mod_string=None):
print 'last modified %s
' % mod_string
print '