[Opensrf-commits] r1185 - trunk/src/python/osrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Dec 27 15:00:43 EST 2007


Author: erickson
Date: 2007-12-27 14:37:55 -0500 (Thu, 27 Dec 2007)
New Revision: 1185

Modified:
   trunk/src/python/osrf/cache.py
Log:
forcing int-ness on timeout value

Modified: trunk/src/python/osrf/cache.py
===================================================================
--- trunk/src/python/osrf/cache.py	2007-12-26 14:25:29 UTC (rev 1184)
+++ trunk/src/python/osrf/cache.py	2007-12-27 19:37:55 UTC (rev 1185)
@@ -37,6 +37,7 @@
         global defaultTimeout
         if timeout is None:
             timeout = defaultTimeout
+        timeout = int(timeout)
         json = to_json(val)
         osrf.log.log_internal("cache: %s => %s" % (str(key), json))
         return self.client.set(str(key), json, timeout)



More information about the opensrf-commits mailing list