git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SLA plugin code updated & SLA app folder cleaned
[myslice.git]
/
sla
/
slaclient
/
wsag_model.py
diff --git
a/sla/slaclient/wsag_model.py
b/sla/slaclient/wsag_model.py
index
271a8f5
..
d190e30
100755
(executable)
--- a/
sla/slaclient/wsag_model.py
+++ b/
sla/slaclient/wsag_model.py
@@
-165,10
+165,13
@@
class AgreementStatus(object):
s = "<GuaranteeTermStatus(name='{}' status='{}')>"
return s.format(self.name, self.status)
s = "<GuaranteeTermStatus(name='{}' status='{}')>"
return s.format(self.name, self.status)
- def __init__(self):
+ def __init__(self
, lst=None
):
self.agreement_id = ""
self.guaranteestatus = ""
self.agreement_id = ""
self.guaranteestatus = ""
- self.guaranteeterms = []
+ if lst is None:
+ self.guaranteeterms = []
+ else:
+ self.guaranteeterms = lst
def __repr__(self):
return (
def __repr__(self):
return (