mirror of
https://github.com/yweber/lodel2.git
synced 2026-06-14 06:20:48 +02:00
EmClass: create should return a populated object
This commit is contained in:
parent
c4e1afd192
commit
2f8ca27161
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class EmClass(EmComponent):
|
|||
conn = dbe.connect()
|
||||
req = uids.insert(values={'table':c.table})
|
||||
res = conn.execute(req)
|
||||
|
||||
|
||||
uid = res.inserted_primary_key[0]
|
||||
|
||||
#Create a new entry in the em_class table
|
||||
|
|
@ -61,7 +61,7 @@ class EmClass(EmComponent):
|
|||
|
||||
conn.close()
|
||||
|
||||
return EmClass(res.inserted_primary_key[0])
|
||||
return EmClass(name)
|
||||
|
||||
|
||||
def populate(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue