from pyjamas.ui.VerticalPanel import VerticalPanel
from pyjamas.ui.HTML import HTML
from pyjamas.ui import HasAlignment
class HelpPanel(VerticalPanel):
def __init__(self):
VerticalPanel.__init__(self)
def refresh(self):
pass
class PlanetLabHelpPanel(HelpPanel):
def __init__(self):
HelpPanel.__init__(self)
m = "
Steps to set up your slice:"
m += "
- Use the Nodes tab to select the nodes "
m += "on which your slice will run."
m += "
- Use the Slivers tab to configure sliver attributes."
m += "(Note that typical users have insufficient permission to "
m += "set most attributes.)"
m += "
- Under the Submit tab, click the Apply button "
m += "to submit your changes, or the Reset button to discard "
m += "them.
"
self.add(HTML(m))
class VINIHelpPanel(HelpPanel):
def __init__(self):
HelpPanel.__init__(self)
m = "Steps to set up your slice:"
m += "
- Use the Nodes tab to select the nodes "
m += "on which your slice will run."
m += "
- Use the Links tab to create a virtual topology for "
m += "your slice, if desired. The virtual topology will be "
m += "computed automatically; virtual links can only be set up "
m += "between nodes that are adjacent in the network, and a virtual "
m += "link will be added between each pair of adjacent nodes. "
m += "You can remove any undesired virtual links or change "
m += "the bandwidth reserved to each link. "
m += "
- Use the Slivers tab to configure sliver attributes."
m += "(Note that typical users have insufficient permission to "
m += "set most attributes.)"
m += "
- Under the Submit tab, click the Apply button "
m += "to submit your changes, or the Reset button to discard "
m += "them.
"
self.add(HTML(m))