def generatePythonWrapperForClass(lineWriter, className, classObj):
    lineWriter("")
    lineWriter("class %s(WebObjectBase):" % className)

    lineWriter = addSpaces(lineWriter)

    lineWriter("def __init__(self, sessionState, inArgs=None):")
    lineWriter('    super(%s, self).__init__(sessionState, inArgs)' % className)
    lineWriter("    self.objectDefinition_.update({")
    lineWriter('        "type": "%s",' % className)
    lineWriter('    })')
    lineWriter("")


    for memberName, memberDef in getClassMember(classObj).iteritems():
        if Decorators.isPropertyToExpose(memberDef):
            if Decorators.propertyHasSetter(memberDef):
                lineWriter("def set_%s(self, value, callbacks):" % memberName)
                lineWriter("    self.set('%s', value, callbacks)" %  memberName)
                lineWriter('')

            lineWriter(memberName % "def get_%s(self, callbacks):")
            lineWriter("    self.get('%s', callbacks)" % memberName)
            lineWriter('')

            lineWriter("def subscribe_%s(self, callbacks):" % memberName)
            lineWriter("    self.subscribe('%s', callbacks)" % memberName)
            lineWriter('')

        if Decorators.isFunctionToExpose(memberDef):
            lineWriter("def %s(self, args, callbacks):" % memberName)
            lineWriter("    self.invoke('%s', args, callbacks)" % memberName)
            lineWriter('')
dataset/ETHPy150Open ufora/ufora/ufora/BackendGateway/SubscribableWebObjects/generatePythonWrapper.py/generatePythonWrapperForClass/swapped operands of `%`