Revision 4ec8c043 snf-common/synnefo/lib/quotaholder/api/quotaholder.py
b/snf-common/synnefo/lib/quotaholder/api/quotaholder.py | ||
---|---|---|
76 | 76 |
Capacity = Nonnegative(classname='Capacity', null=True) |
77 | 77 |
ImportLimit = Nonnegative(classname='ImportLimit', null=True) |
78 | 78 |
ExportLimit = Nonnegative(classname='ExportLimit', null=True) |
79 |
QuantityDelta = Integer(classname='QuantityDelta', null=True) |
|
80 |
CapacityDelta = Integer(classname='CapacityDelta', null=True) |
|
81 |
ImportLimitDelta = Integer(classname='ImportLimitDelta', null=True) |
|
82 |
ExportLimitDelta = Integer(classname='ExportLimitDelta', null=True) |
|
79 | 83 |
Imported = Nonnegative(classname='Imported') |
80 | 84 |
Exported = Nonnegative(classname='Exported') |
81 | 85 |
Returned = Nonnegative(classname='Returned') |
... | ... | |
230 | 234 |
rejected = ListOf(Entity, Resource) |
231 | 235 |
return rejected |
232 | 236 |
|
237 |
def add_quota ( |
|
238 |
self, |
|
239 |
context = Context, |
|
240 |
add_quota = ListOf( Entity, Resource, Key, |
|
241 |
QuantityDelta, CapacityDelta, |
|
242 |
ImportLimitDelta, ExportLimitDelta ) |
|
243 |
): |
|
244 |
rejected = ListOf(Entity, Resource) |
|
245 |
return rejected |
|
246 |
|
|
233 | 247 |
def issue_commission ( |
234 | 248 |
self, |
235 | 249 |
context = Context, |
Also available in: Unified diff