From 48c90155a590e8061fe98e001a7ee1dee36a984c Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 16 Sep 2007 17:45:22 +0000 Subject: [PATCH] rolling back unnecessary use of custom replace method git-svn-id: svn://svn.open-ils.org/ILS/trunk@7794 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/utils/csedit.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/python/oils/utils/csedit.py b/Open-ILS/src/python/oils/utils/csedit.py index 8054196243..d66159694f 100644 --- a/Open-ILS/src/python/oils/utils/csedit.py +++ b/Open-ILS/src/python/oils/utils/csedit.py @@ -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 -- 2.11.0