|
@@ -171,7 +171,7 @@ import %s
|
171
|
171
|
#
|
172
|
172
|
# WARNING multiple PK not supported
|
173
|
173
|
#
|
174
|
|
- leobj_uid_fieldtype = constructor
|
|
174
|
+ leobj_uid_fieldtype = "{ 'lodel_id': %s }"%constructor
|
175
|
175
|
else:
|
176
|
176
|
leobj_fieldtypes.append( '%s: %s'%(repr(fname), constructor) )
|
177
|
177
|
|
|
@@ -206,7 +206,7 @@ class LeObject(leapi.leobject._LeObject, LeCrud):
|
206
|
206
|
result += """
|
207
|
207
|
## @brief EmClass {name} LeClass child class
|
208
|
208
|
# @see leapi.leclass.LeClass
|
209
|
|
-class {name}(LeObject, LeClass):
|
|
209
|
+class {name}(LeClass, LeObject):
|
210
|
210
|
_class_id = {uid}
|
211
|
211
|
|
212
|
212
|
""".format(
|