constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 4b075d41f0a141a34eee79dbe3e3b2edb34fcbac
parent 7d45e6caae8703c4ca536901b592f14ad99d5ae7
Author: Dan Callaghan <djc@djc.id.au>
Date:   Wed, 19 Nov 2008 20:14:13 +1000

oops (needs some kind of automated tests to check that everything works >_>)

Diffstat:
Mblog.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/blog.py b/blog.py
@@ -51,6 +51,7 @@ class DirectoryEntrySet(object):
         return os.path.exists(os.path.join(self.base_dir, key))
 
     def __getitem__(self, key):
+        key = key.encode('utf8') # XXX don't hardcode
         if key not in self: raise KeyError(key)
         return self.entry_class(self.base_dir, key)