The pythonClassToDBTable and dbTableToPythonClass in Style.py are written as
below:
def pythonClassToDBTable(self, className):
return className[0].lower() \
+ mixedToUnder(className[1:])
def dbTableToPythonClass(self, table):
return table[0].upper() \
+ underToMixed(table[1:])
They produces some unexpected results, for example "TOrder" is converted to
"torder" rather than "t_order".
Could this be changed to:
def pythonClassToDBTable(self, className):
return mixedToUnder(className)
def dbTableToPythonClass(self, table):
m = underToMixed(table)
return m[0].upper() + m[1:]
Thanks
|