rolling back unnecessary use of custom replace method
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Sep 2007 17:45:22 +0000 (17:45 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Sep 2007 17:45:22 +0000 (17:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7794 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/python/oils/utils/csedit.py

index 8054196..d661596 100644 (file)
@@ -15,7 +15,6 @@
 
 from osrf.log import *
 from osrf.json import *
-from oils.utils.utils import replace
 from oils.utils.idl import oilsGetIDLParser
 from osrf.ses import osrfClientSession
 from oils.const import *
@@ -138,11 +137,11 @@ class CSEditor(object):
       method = "%s.direct.%s.%s" % (self.app, type, action)
 
       if options.get('idlist'):
-         method = replace(method, 'search', 'id_list')
+         method = method.replace('search', 'id_list')
          del options['idlist']
 
       if action == 'search':
-         method = replace(method, '$', '.atomic')
+         method = method.replace('$', '.atomic')
 
       params = [arg];
       if len(options.keys()):
@@ -163,8 +162,8 @@ def oilsLoadCSEditor():
    for k, fm in obj.iteritems():
       for action in ACTIONS:
 
-         fmname = replace(fm['fieldmapper'], '::', '_')
-         type = replace(fm['fieldmapper'], '::', '.')
+         fmname = fm['fieldmapper'].replace('::', '_')
+         type = fm['fieldmapper'].replace('::', '.')
          name = "%s_%s" % (action, fmname)
 
          str = 'def %s(self, arg, **options):\n' % name