repaired event test
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Jan 2008 18:00:46 +0000 (18:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Jan 2008 18:00:46 +0000 (18:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8403 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/python/oils/event.py

index db64481..d3a78f0 100644 (file)
@@ -32,7 +32,7 @@ class Event(object):
             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