Exemple #1
0
 def __init__(self,value):
     """
     Instantiates an pbs.holdtypes() value.
     """
     _pbs_v1.validate_input("job", "Hold_Types", value)
     self.opval = "__init__"
     super(hold_types,self).__init__(value)
Exemple #2
0
 def __init__(self,value):
     val = value
     if isinstance(value, (str,)):
         val = value.replace("\\", "/")
         val = val.replace("/,", "\\,")
     _pbs_v1.validate_input("job", "stagein", val)
     super(staging_list,self).__init__(val)
Exemple #3
0
 def __init__(self,value):
     """
     Instantiates an pbs.holdtypes() value.
     """
     _pbs_v1.validate_input("job", "Hold_Types", value)
     self.opval = "__init__"
     super(hold_types,self).__init__(value)
Exemple #4
0
 def __init__(self,value):
     val = value
     if isinstance(value, (str,)):
         val = value.replace("\\", "/")
         val = val.replace("/,", "\\,")
     _pbs_v1.validate_input("job", "stagein", val)
     super(staging_list,self).__init__(val)
Exemple #5
0
 def __init__(self,value):
     # for windows
     val = value
     if isinstance(value, (str,)):
         val = value.replace("\\", "/")
     _pbs_v1.validate_input("job", "Output_Path", val)
     super(path,self).__init__(val)
Exemple #6
0
 def __init__(self,value):
     # for windows
     val = value
     if isinstance(value, (str,)):
         val = value.replace("\\", "/")
     _pbs_v1.validate_input("job", "Output_Path", val)
     super(path,self).__init__(val)
Exemple #7
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "exec_vnode", value)
     super(exec_vnode,self).__init__(value)
     self.chunks = list()
     vals = value.split("+")
     i = 0
     for v in vals:
         self.chunks.append(vchunk(v.strip("(").strip(")")))
Exemple #8
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "exec_vnode", value)
     super(exec_vnode,self).__init__(value)
     self.chunks = list()
     vals = value.split("+")
     i = 0
     for v in vals:
         self.chunks.append(vchunk(v.strip("(").strip(")")))
Exemple #9
0
    def __init__(self,value):
        if value in ("true","True","TRUE","t","T","y","1",1):
            v = 1
        elif value in ("false","False","FALSE","f","F","n","0",0):
            v = 0
        else:
	    # should not end up here
            v = -1
        # validates against the 'Rerunable' attribute entry of the
        # the server 'job' table
        _pbs_v1.validate_input("job", "Rerunable", str(v))
        super(pbs_bool,self).__init__(v)
Exemple #10
0
    def __init__(self,value):
        if value in ("true","True","TRUE","t","T","y","1",1):
            v = 1
        elif value in ("false","False","FALSE","f","F","n","0",0):
            v = 0
        else:
	    # should not end up here
            v = -1
        # validates against the 'Rerunable' attribute entry of the
        # the server 'job' table
        _pbs_v1.validate_input("job", "Rerunable", str(v))
        super(pbs_bool,self).__init__(v)
Exemple #11
0
    def __init__(self,value):
	# validates against the 'state_account' attribute entry of the
        # the server 'queue' table
        _pbs_v1.validate_input("queue", "route_destinations", value)
        super(route_destinations,self).__init__(value)
Exemple #12
0
 def __init__(self,value):
     _pbs_v1.validate_input("queue", "node_group_key", value)
     super(node_group_key,self).__init__(value)
Exemple #13
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "software", value)
     super(software,self).__init__(value)
Exemple #14
0
    def __init__(self,value):
	# validates against the 'state_account' attribute entry of the
        # the server 'server' table
        _pbs_v1.validate_input("server", "state_count", value)
        super(state_count,self).__init__(value)
Exemple #15
0
    def __init__(self,value):
	# validates against the 'state_account' attribute entry of the
        # the server 'queue' table
        _pbs_v1.validate_input("queue", "route_destinations", value)
        super(route_destinations,self).__init__(value)
Exemple #16
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Keep_Files", value)
     super(keep_files,self).__init__(value)
Exemple #17
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Keep_Files", value)
     super(keep_files,self).__init__(value)
Exemple #18
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "group_list", value)
     super(group_list,self).__init__(value)
Exemple #19
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "array_indices_submitted", value)
     super(range,self).__init__(value)
Exemple #20
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Mail_Users", value)
     super(pbs_list,self).__init__(value)
Exemple #21
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "place", value)
     super(place,self).__init__(value)
Exemple #22
0
    def __new__(cls,value):
        valstr = str(value)
	# validates against the 'walltime' attribute entry of the
	# the server 'resource' table
        _pbs_v1.validate_input("resc", "walltime", valstr)
        return int.__new__(cls, _pbs_v1.duration_to_secs(valstr))
Exemple #23
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "default_qsub_arguments", value)
     super(args,self).__init__(value)
Exemple #24
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "software", value)
     super(software,self).__init__(value)
Exemple #25
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "pbs_version", value)
     super(version,self).__init__(value)
Exemple #26
0
 def __init__(self,value):
     _pbs_v1.validate_input("queue", "node_group_key", value)
     super(node_group_key,self).__init__(value)
Exemple #27
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Checkpoint", value)
     super(checkpoint,self).__init__(value)
Exemple #28
0
 def __init__(self,value):
     # empty  string ("") also matched
     if value != "":
         _pbs_v1.validate_input("job", "ctime", str(long(value)))
     super(pbs_int,self).__init__(value)
Exemple #29
0
    def __init__(self,value):
	# validates against the 'state_account' attribute entry of the
        # the server 'server' table
        _pbs_v1.validate_input("server", "state_count", value)
        super(state_count,self).__init__(value)
Exemple #30
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Job_Owner", value)
     super(pbs_str,self).__init__(value)
Exemple #31
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Mail_Points", value)
     super(mail_points,self).__init__(value)
Exemple #32
0
 def __init__(self,value):
     _pbs_v1.validate_input("float", "", str(value))
     super(pbs_float,self).__init__(value)
Exemple #33
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Mail_Points", value)
     super(mail_points,self).__init__(value)
Exemple #34
0
 def __init__(self,value):
     _pbs_v1.validate_input("resv", "Authorized_Users", value)
     super(acl,self).__init__(value)
Exemple #35
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "array_indices_submitted", value)
     super(range,self).__init__(value)
Exemple #36
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "select", value)
     super(select,self).__init__(value)
Exemple #37
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "license_count", value)
     super(license_count,self).__init__(value)
Exemple #38
0
    def __new__(cls,value):
        valstr = str(value)
	# validates against the 'walltime' attribute entry of the
	# the server 'resource' table
        _pbs_v1.validate_input("resc", "walltime", valstr)
        return int.__new__(cls, _pbs_v1.duration_to_secs(valstr))
Exemple #39
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "default_qsub_arguments", value)
     super(args,self).__init__(value)
Exemple #40
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Job_Owner", value)
     super(pbs_str,self).__init__(value)
Exemple #41
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "pbs_version", value)
     super(version,self).__init__(value)
Exemple #42
0
 def __init__(self,value):
     _pbs_v1.validate_input("resv", "Authorized_Users", value)
     super(acl,self).__init__(value)
Exemple #43
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "place", value)
     super(place,self).__init__(value)
Exemple #44
0
 def __init__(self,value):
     _pbs_v1.validate_input("server", "license_count", value)
     super(license_count,self).__init__(value)
Exemple #45
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Mail_Users", value)
     super(pbs_list,self).__init__(value)
Exemple #46
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "exec_host", value)
     super(exec_host,self).__init__(value)
Exemple #47
0
 def __init__(self,value):
     # empty  string ("") also matched
     if value != "":
         _pbs_v1.validate_input("job", "ctime", str(long(value)))
     super(pbs_int,self).__init__(value)
Exemple #48
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Checkpoint", value)
     super(checkpoint,self).__init__(value)
Exemple #49
0
 def __init__(self,value):
     _pbs_v1.validate_input("float", "", str(value))
     super(pbs_float,self).__init__(value)
Exemple #50
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "depend", value)
     super(depend,self).__init__(value)
Exemple #51
0
 def __init__(self,value):
     _pbs_v1.validate_input("resc", "select", value)
     super(select,self).__init__(value)
Exemple #52
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "group_list", value)
     super(group_list,self).__init__(value)
Exemple #53
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "exec_host", value)
     super(exec_host,self).__init__(value)
Exemple #54
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "User_List", value)
     super(user_list,self).__init__(value)
Exemple #55
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "depend", value)
     super(depend,self).__init__(value)
Exemple #56
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "sandbox", value)
     super(sandbox,self).__init__(value)
Exemple #57
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "User_List", value)
     super(user_list,self).__init__(value)
Exemple #58
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Join_Path", value)
     super(join_path,self).__init__(value)
Exemple #59
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "sandbox", value)
     super(sandbox,self).__init__(value)
Exemple #60
0
 def __init__(self,value):
     _pbs_v1.validate_input("job", "Join_Path", value)
     super(join_path,self).__init__(value)