From b077cdfbe7b63b6b49477de31e9ad3ccc9403a50 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 4 Aug 2007 09:04:53 +0000 Subject: [PATCH] just return empty set --- oxdbarchive/controllers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oxdbarchive/controllers.py b/oxdbarchive/controllers.py index 8e14522..6504e2d 100644 --- a/oxdbarchive/controllers.py +++ b/oxdbarchive/controllers.py @@ -22,12 +22,14 @@ def httpExpires(sec): class Root(controllers.RootController): @expose() - def default(self, md5Hash, action, position = None): + def default(self, md5Hash = None, action = None, position = None): + if not md5Hash: + return dict() try: f = ArchiveFile.byMd5sum(md5Hash) except: return dict() - + if action == 'metadata': return dict(metadata = f) elif action in ('timeline', 'timeline.png'):