Index: trunk/packages/invirt-database/python/database/models.py
===================================================================
--- trunk/packages/invirt-database/python/database/models.py	(revision 2132)
+++ trunk/packages/invirt-database/python/database/models.py	(revision 2134)
@@ -88,5 +88,9 @@
        Column('owner_id', String, primary_key=True, nullable=False),
        Column('ram_quota_total', Integer, nullable=True),
-       Column('ram_quota_single', Integer, nullable=True))
+       Column('ram_quota_single', Integer, nullable=True),
+       Column('disk_quota_total', Integer, nullable=True),
+       Column('disk_quota_single', Integer, nullable=True),
+       Column('vms_quota_total', Integer, nullable=True),
+       Column('vms_quota_active', Integer, nullable=True))
 
 machine_access_table = Table('machine_access', meta,
Index: trunk/packages/invirt-database/python/database/owner.py
===================================================================
--- trunk/packages/invirt-database/python/database/owner.py	(revision 2132)
+++ trunk/packages/invirt-database/python/database/owner.py	(revision 2134)
@@ -1,8 +1,15 @@
 MAX_MEMORY_TOTAL = 512
 MAX_MEMORY_SINGLE = 512
+MAX_DISK_TOTAL = 50
+MAX_DISK_SINGLE = 50
+MAX_VMS_TOTAL = 10
+MAX_VMS_ACTIVE = 4
+
 class Owner(object):
     def __repr__(self):
-        return "<Owner %s: ram_quota_total=%s MB ram_quota_single=%s MB>" % (self.owner_id, self.ram_quota_total, self.ram_quota_single)
-    def getQuotas(owner):
+        return """<Owner %s: ram_quota_total=%s MB ram_quota_single=%s MB
+disk_quota_total=%s MB disk_quota_single=%s MB
+vms_quota_total=%s vms_quota_active=%s >""" % (self.owner_id, self.ram_quota_total, self.ram_quota_single, self.disk_quota_total, self.disk_quota_single, self.vms_quota_total, self.vms_quota_active)
+    def getMemoryQuotas(owner):
         owner_info = Owner.query().filter_by(owner_id=owner).first()
         if owner_info != None:
@@ -17,3 +24,31 @@
             quota_single = MAX_MEMORY_SINGLE
         return (quota_total, quota_single)
-    getQuotas = staticmethod(getQuotas)
+    getMemoryQuotas = staticmethod(getMemoryQuotas)
+    def getDiskQuotas(owner):
+        owner_info = Owner.query().filter_by(owner_id=owner).first()
+        if owner_info != None:
+            quota_total = owner_info.disk_quota_total
+            if quota_total == None:
+                quota_total = MAX_DISK_TOTAL
+            quota_single = owner_info.disk_quota_single
+            if quota_single == None:
+                quota_single = MAX_DISK_SINGLE
+        else:
+            quota_total = MAX_DISK_TOTAL
+            quota_single = MAX_DISK_SINGLE
+        return (quota_total, quota_single)
+    getDiskQuotas = staticmethod(getDiskQuotas)
+    def getVMQuotas(owner):
+        owner_info = Owner.query().filter_by(owner_id=owner).first()
+        if owner_info != None:
+            quota_total = owner_info.vms_quota_total
+            if quota_total == None:
+                quota_total = MAX_VMS_TOTAL
+            quota_active = owner_info.vms_quota_active
+            if quota_active == None:
+                quota_active = MAX_VMS_ACTIVE
+        else:
+            quota_total = MAX_VMS_TOTAL
+            quota_single = MAX_VMS_ACTIVE
+        return (quota_total, quota_active)
+    getVMQuotas = staticmethod(getVMQuotas)
