[open-ils-commits] r8399 -
branches/acq-experiment/Open-ILS/src/python/oils/utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 17 12:39:19 EST 2008
Author: erickson
Date: 2008-01-17 12:13:38 -0500 (Thu, 17 Jan 2008)
New Revision: 8399
Modified:
branches/acq-experiment/Open-ILS/src/python/oils/utils/utils.py
Log:
porting to acq branch: added a generic event class to model ILS events, removed functional event code from the util class
Modified: branches/acq-experiment/Open-ILS/src/python/oils/utils/utils.py
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/oils/utils/utils.py 2008-01-17 17:11:51 UTC (rev 8398)
+++ branches/acq-experiment/Open-ILS/src/python/oils/utils/utils.py 2008-01-17 17:13:38 UTC (rev 8399)
@@ -23,20 +23,6 @@
# Grab-bag of general utility functions
# -----------------------------------------------------------------------
-def isEvent(evt):
- return (evt and isinstance(evt, dict) and evt.get('ilsevent') != None)
-
-def eventCode(evt):
- if isEvent(evt):
- return evt['ilsevent']
- return None
-
-def eventText(evt):
- if isEvent(evt):
- return evt['textcode']
- return None
-
-
def md5sum(str):
m = md5.new()
m.update(str)
More information about the open-ils-commits
mailing list