[open-ils-commits] r8403 - trunk/Open-ILS/src/python/oils

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 17 13:26:27 EST 2008


Author: erickson
Date: 2008-01-17 13:00:46 -0500 (Thu, 17 Jan 2008)
New Revision: 8403

Modified:
   trunk/Open-ILS/src/python/oils/event.py
Log:
repaired event test

Modified: trunk/Open-ILS/src/python/oils/event.py
===================================================================
--- trunk/Open-ILS/src/python/oils/event.py	2008-01-17 17:57:34 UTC (rev 8402)
+++ trunk/Open-ILS/src/python/oils/event.py	2008-01-17 18:00:46 UTC (rev 8403)
@@ -32,7 +32,7 @@
             like an ILS event, construct an Event object and return it.
             Returns None otherwise.  '''
 
-        if evt and 'ilsevent' in evt and 'textcode' in evt:
+        if isinstance(evt, dict) and 'ilsevent' in evt and 'textcode' in evt:
             return Event(evt)
 
         return None



More information about the open-ils-commits mailing list