From: erickson Date: Thu, 17 Jan 2008 17:13:38 +0000 (+0000) Subject: porting to acq branch: added a generic event class to model ILS events, removed funct... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fb5399864c207f33f7c9f651aed5f552b36c3a6c;p=Evergreen.git porting to acq branch: added a generic event class to model ILS events, removed functional event code from the util class git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8399 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/python/oils/utils/utils.py b/Open-ILS/src/python/oils/utils/utils.py index 1941a85759..b1fd037481 100644 --- a/Open-ILS/src/python/oils/utils/utils.py +++ b/Open-ILS/src/python/oils/utils/utils.py @@ -23,20 +23,6 @@ from osrf.log import * # 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)