var flagVW = false;
var flagWi = false;
+ promt.append('<p>SLA description</p>');
+
var wilabForm = "";
- var wimessage = '<p>SLA description</p><p>to be deployed</p>';
+ wilabForm += "<ul>";
for(var iter = 0; iter < arrayselectedresources.length; iter++){
- var list = '<p class="wi'+iter+'" name=wi"'+iter+'">'+arrayselectedresources[iter].toLowerCase()+'</p><br>';
+ var list = '<li class="wi'+iter+'" name=wi"'+iter+'">'+arrayselectedresources[iter].toLowerCase()+'</li>';
-
if (arrayselectedresources[iter].toLowerCase().indexOf("wilab2") >= 0){
accepted_sla.push({"wilab2":false});
}
}
+ wilabForm += "</ul>";
//var wallmessage = '<p>SLA description</p><p>Testbed guarantees 0.99 Uptime rate for 0.99 rate of the VirtualWall resources during the sliver lifetime</p>';
var wallForm = "";
+ wallForm += "<ul>";
for(var iter = 0; iter < arrayselectedresources.length; iter++){
- var list = '<class="wall'+iter+'" name=wall"'+iter+'" >'+arrayselectedresources[iter].toLowerCase()+'</p><br>';
+ var list = '<li class="wall'+iter+'" name=wall"'+iter+'" >'+arrayselectedresources[iter].toLowerCase()+'</li>';
if (arrayselectedresources[iter].toLowerCase().indexOf("wall2") >= 0){
}
}
- promt.append(wimessage);
+ wallForm += "</ul>";
+
var flagDouble = false;
if(flagWi)
{
flagDouble = true;
+ promt.append('<p>Testbed guarantees 0.99 Uptime rate for 0.99 rate of the WiLab2 resources during the sliver lifetime</p>');
promt.append(wilabForm);
+ promt.append('<br />');
}
if(flagVW)
{
//promt.append(wallmessage);
flagDouble = true;
+ promt.append('<p>Testbed guarantees 0.99 Uptime rate for 0.99 rate of the VirtualWall resources during the sliver lifetime</p>');
promt.append(wallForm);
+ promt.append('<br />');
}
padding: 15px 15px;
}
-div.portfolio-item {
-
+div.portfolio-item img{
+ width: 150px;
}
div.portfolio-item p[id*='name-'] {
$.each(data, function(i, item){
- console.log(item);
+ var imgsrc;
+
+ if(item.name.toLowerCase().indexOf("santander") >= 0){
+ imgsrc = "smartsantander.png";
+ } else if(item.name.toLowerCase().indexOf("hadoop") >= 0){
+ imgsrc = "hadoop.png";
+ }
+
var row = $('<div class="row">').append(
$('<div>').addClass("col-md-3 portfolio-item").append(
- $('<img>').attr('src', "http://placehold.it/150x150")
+ $('<img>').attr('src', "{{ STATIC_URL }}img/servicedirectory/" + imgsrc)
),
$('<div>').addClass("col-md-6 portfolio-item").append(
$('<p id="name-' + item.name.replace(/ /g,'') + '">').text(item.name),
result = requests.get(url, **kwargs)
print "GET {} {} {}".format(
result.url, result.status_code, result.text[0:70])
+
return result
def post(self, path, data=None, **kwargs):
"""
path = _buildpath_(agreementid, "guaranteestatus")
r = self.res.client.get(path, headers={'accept': 'application/json'})
+
+ print "---- JSON Response ----"
+ print r.text
+
json_obj = r.json()
+ print "-- json_obj() --"
+ print type(json_obj)
+ print json_obj
+
status = wsag_model.AgreementStatus.json_decode(json_obj)
+ print "---- STATUS ----"
+ print status
+
return status, r
def create(self, agreement):