[open-ils-commits] r8404 -
branches/acq-experiment/Open-ILS/src/python/oils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 17 13:26:32 EST 2008
Author: erickson
Date: 2008-01-17 13:00:50 -0500 (Thu, 17 Jan 2008)
New Revision: 8404
Modified:
branches/acq-experiment/Open-ILS/src/python/oils/event.py
Log:
repaired event test
Modified: branches/acq-experiment/Open-ILS/src/python/oils/event.py
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/oils/event.py 2008-01-17 18:00:46 UTC (rev 8403)
+++ branches/acq-experiment/Open-ILS/src/python/oils/event.py 2008-01-17 18:00:50 UTC (rev 8404)
@@ -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