entities/lib.py
branchstable
changeset 2060 10d9fbdbed35
parent 1977 606923dff11b
child 2098 13aab3775af7
--- a/entities/lib.py	Fri Jun 05 18:54:39 2009 +0200
+++ b/entities/lib.py	Mon Jun 08 18:29:35 2009 +0200
@@ -141,4 +141,7 @@
                          {'t': datetime.now(), 'x': self.eid}, 'x')
 
     def valid(self, date):
-        return date < self.timestamp
+        if date:
+            return date < self.timestamp
+        return False
+