From: Tony Mack Date: Thu, 29 Nov 2012 21:40:51 +0000 (-0500) Subject: added sliver_allocation table X-Git-Tag: sfa-3.0-0~85 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=fc5cdfd497880448480b64234991f9d33cdffec1 added sliver_allocation table --- diff --git a/sfa/storage/model.py b/sfa/storage/model.py index 64da316d..972040e6 100644 --- a/sfa/storage/model.py +++ b/sfa/storage/model.py @@ -311,6 +311,26 @@ class RegKey (Base): result += ">" return result +class SliverAllocation(Base,AlchemyObj): + __tablename__ = 'sliver_allocation' + sliver_id = Column(String, primary_key=True) + allocation_state = Column(String) + + def __init__(self, sliver_id, allocation_state): + self.sliver_id = sliver_id + self.allocation_state = allocation_state + + def __repr__(self): + result = "