示例#1
0
 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
示例#2
0
 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
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
示例#7
0
 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))
示例#9
0
 def check(self, input, out):
     self.assertEquals(out, ExtendedCamelCase.camel(input))
示例#10
0
 def findMethodByActionName(self, cells, args):
     actionName = cells.text()
     return self.findMethod(ExtendedCamelCase.camel(actionName), args)