projects
/
invirt/packages/invirt-database.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
050675e
)
more sqlalchemy api fixes
author
Adam Glasgall
<adam@crossproduct.net>
Mon, 29 Apr 2013 02:16:04 +0000
(22:16 -0400)
committer
Adam Glasgall
<adam@crossproduct.net>
Mon, 29 Apr 2013 02:16:04 +0000
(22:16 -0400)
python/database/owner.py
patch
|
blob
|
history
diff --git
a/python/database/owner.py
b/python/database/owner.py
index
ac8ecfd
..
58beaa3
100755
(executable)
--- a/
python/database/owner.py
+++ b/
python/database/owner.py
@@
-18,7
+18,7
@@
class Owner(record.Record):
@classmethod
def getMemoryQuotas(cls, owner):
@classmethod
def getMemoryQuotas(cls, owner):
- owner_info = cls.query().get(owner)
+ owner_info = cls.query.get(owner)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)
@@
-26,7
+26,7
@@
class Owner(record.Record):
@classmethod
def getDiskQuotas(cls, owner):
@classmethod
def getDiskQuotas(cls, owner):
- owner_info = cls.query().get(owner)
+ owner_info = cls.query.get(owner)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)
@@
-34,7
+34,7
@@
class Owner(record.Record):
@classmethod
def getVMQuotas(cls, owner):
@classmethod
def getVMQuotas(cls, owner):
- owner_info = cls.query().get(owner)
+ owner_info = cls.query.get(owner)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)
if owner_info == None:
owner_info = cls(owner_id=owner)
session.expunge(owner_info)