def findMethodByActionName(self, cells, numArgs): parms = numArgs / 2 + 1 args = (numArgs + 1) / 2 name = cells.text() i = 1 while (i < parms): name += " " + cells.at(i*2).text() i += 1 target = self.findMethod(ExtendedCamelCase.camel(name), args) target.setEverySecond(True) return target
def findMethodByActionName(self, cells, numArgs): parms = numArgs / 2 + 1 args = (numArgs + 1) / 2 name = cells.text() i = 1 while (i < parms): name += " " + cells.at(i * 2).text() i += 1 target = self.findMethod(ExtendedCamelCase.camel(name), args) target.setEverySecond(True) return target
def bind(self, headerRow): cells = headerRow self.argCount = cells.size() self.argNames = "" while cells is not None: self.argNames += " " + cells.text() cells = cells.more methodName = ExtendedCamelCase.camel(self.argNames) try: self.target = self.findMethod(methodName, self.argCount) self.boundOK = True except Exception, e: self.exception(headerRow, e)
def identifierName(self, name): return ExtendedCamelCase.camel(name)
def findMethodByActionName(self, cells, args): actionName = cells.text() return self.findMethod(ExtendedCamelCase.camel(actionName), args)
def check(self, input, out): self.assertEquals(out, ExtendedCamelCase.camel(input))