def replBeforeRequest(self): """ """ from url_repl.AFT_wi_repl import http_request_repl hrr = http_request_repl() print "==", "cfg = ", pformat(self.cfg) self.cfg = hrr.do_repl(self.cfg) print "==", "newcfg = ", pformat(self.cfg) return True
def replBeforeRequest(self): """ """ from url_repl.AFT_wi_repl import http_request_repl hrr = http_request_repl() cfg = copy.deepcopy(self.cfg) #print '==','cfg = ',pformat(self.cfg) cfg = hrr.do_repl(cfg) #print '==','newcfg = ',pformat(self.cfg) if cfg == self.cfg: print "==", "No replacement" else: print '==', 'cfg = ', pformat(self.cfg) print '==', 'newcfg = ', pformat(cfg) self.cfg = cfg return True