Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
Ejemplo n.º 7
0
 def findMethodByActionName(self, cells, args):
     actionName = cells.text()
     return self.findMethod(ExtendedCamelCase.camel(actionName), args)
Ejemplo n.º 8
0
 def check(self, input, out):
     self.assertEquals(out, ExtendedCamelCase.camel(input))
Ejemplo n.º 9
0
 def check(self, input, out):
     self.assertEquals(out, ExtendedCamelCase.camel(input))
Ejemplo n.º 10
0
 def findMethodByActionName(self, cells, args):
     actionName = cells.text()
     return self.findMethod(ExtendedCamelCase.camel(actionName), args)