Example #1
0
class ExecutionLink:
    href = "/hcli/cli/__edef"
    profile = profile.ProfileLink().href + semantic.hcli_execution_type
    
    def __init__(self, uid=None, command=None):
        if uid != None and command != None:
            self.href = self.href + "/" + uid + "?command=" + urllib.parse.quote(command)
Example #2
0
class FinalPostExecutionLink:
    href = "/hcli/cli/exec/postexecute"
    profile = profile.ProfileLink().href + semantic.hcli_execution_type

    def __init__(self, command=None):
        if command != None:
            self.href = self.href + "?command=" + command
Example #3
0
class OptionLink:
    href = "/hcli/cli/__odef"
    profile = profile.ProfileLink().href + semantic.hcli_option_type

    def __init__(self, uid=None, option=None, href=None):
        if uid != None and option != None and href != None:
            self.href = self.href + "/" + uid + "?command=" + urllib.parse.quote(
                option) + "&href=" + href
Example #4
0
class ParameterLink:
    href = "/hcli/cli/__pdef"
    profile = profile.ProfileLink().href + semantic.hcli_parameter_type

    def __init__(self, uid=None, command=None, href=None):
        if uid != None and command != None and href != None:
            self.href = self.href + "/" + uid + "?command=" + urllib.parse.quote(
                command) + "&href=" + href