source: devel/5.X/pbs.py @ 335

Last change on this file since 335 was 335, checked in by bas, 8 years ago

finally version of pbs_python to 5.X, still no working rm interface

File size: 32.1 KB
Line 
1# This file was automatically generated by SWIG (http://www.swig.org).
2# Version 2.0.7
3#
4# Do not make changes to this file unless you know what you are doing--modify
5# the SWIG interface file instead.
6
7
8
9from sys import version_info
10if version_info >= (2,6,0):
11    def swig_import_helper():
12        from os.path import dirname
13        import imp
14        fp = None
15        try:
16            fp, pathname, description = imp.find_module('_pbs', [dirname(__file__)])
17        except ImportError:
18            import _pbs
19            return _pbs
20        if fp is not None:
21            try:
22                _mod = imp.load_module('_pbs', fp, pathname, description)
23            finally:
24                fp.close()
25            return _mod
26    _pbs = swig_import_helper()
27    del swig_import_helper
28else:
29    import _pbs
30del version_info
31try:
32    _swig_property = property
33except NameError:
34    pass # Python < 2.2 doesn't have 'property'.
35def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36    if (name == "thisown"): return self.this.own(value)
37    if (name == "this"):
38        if type(value).__name__ == 'SwigPyObject':
39            self.__dict__[name] = value
40            return
41    method = class_type.__swig_setmethods__.get(name,None)
42    if method: return method(self,value)
43    if (not static):
44        self.__dict__[name] = value
45    else:
46        raise AttributeError("You cannot add attributes to %s" % self)
47
48def _swig_setattr(self,class_type,name,value):
49    return _swig_setattr_nondynamic(self,class_type,name,value,0)
50
51def _swig_getattr(self,class_type,name):
52    if (name == "thisown"): return self.this.own()
53    method = class_type.__swig_getmethods__.get(name,None)
54    if method: return method(self)
55    raise AttributeError(name)
56
57def _swig_repr(self):
58    try: strthis = "proxy of " + self.this.__repr__()
59    except: strthis = ""
60    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
61
62try:
63    _object = object
64    _newclass = 1
65except AttributeError:
66    class _object : pass
67    _newclass = 0
68
69
70
71def new_attrl(*args):
72  return _pbs.new_attrl(*args)
73new_attrl = _pbs.new_attrl
74
75def new_attropl(*args):
76  return _pbs.new_attropl(*args)
77new_attropl = _pbs.new_attropl
78
79def new_batch_status():
80  return _pbs.new_batch_status()
81new_batch_status = _pbs.new_batch_status
82
83def get_error():
84  return _pbs.get_error()
85get_error = _pbs.get_error
86class attrlArray(_object):
87    __swig_setmethods__ = {}
88    __setattr__ = lambda self, name, value: _swig_setattr(self, attrlArray, name, value)
89    __swig_getmethods__ = {}
90    __getattr__ = lambda self, name: _swig_getattr(self, attrlArray, name)
91    __repr__ = _swig_repr
92    def __init__(self, *args): 
93        this = _pbs.new_attrlArray(*args)
94        try: self.this.append(this)
95        except: self.this = this
96    __swig_destroy__ = _pbs.delete_attrlArray
97    __del__ = lambda self : None;
98    def __getitem__(self, *args): return _pbs.attrlArray___getitem__(self, *args)
99    def __setitem__(self, *args): return _pbs.attrlArray___setitem__(self, *args)
100    def cast(self): return _pbs.attrlArray_cast(self)
101    __swig_getmethods__["frompointer"] = lambda x: _pbs.attrlArray_frompointer
102    if _newclass:frompointer = staticmethod(_pbs.attrlArray_frompointer)
103attrlArray_swigregister = _pbs.attrlArray_swigregister
104attrlArray_swigregister(attrlArray)
105
106def attrlArray_frompointer(*args):
107  return _pbs.attrlArray_frompointer(*args)
108attrlArray_frompointer = _pbs.attrlArray_frompointer
109
110ATTR_a = _pbs.ATTR_a
111ATTR_c = _pbs.ATTR_c
112ATTR_e = _pbs.ATTR_e
113ATTR_f = _pbs.ATTR_f
114ATTR_g = _pbs.ATTR_g
115ATTR_h = _pbs.ATTR_h
116ATTR_j = _pbs.ATTR_j
117ATTR_k = _pbs.ATTR_k
118ATTR_l = _pbs.ATTR_l
119ATTR_m = _pbs.ATTR_m
120ATTR_o = _pbs.ATTR_o
121ATTR_p = _pbs.ATTR_p
122ATTR_q = _pbs.ATTR_q
123ATTR_r = _pbs.ATTR_r
124ATTR_t = _pbs.ATTR_t
125ATTR_array_id = _pbs.ATTR_array_id
126ATTR_u = _pbs.ATTR_u
127ATTR_v = _pbs.ATTR_v
128ATTR_A = _pbs.ATTR_A
129ATTR_args = _pbs.ATTR_args
130ATTR_reservation_id = _pbs.ATTR_reservation_id
131ATTR_login_node_id = _pbs.ATTR_login_node_id
132ATTR_login_prop = _pbs.ATTR_login_prop
133ATTR_external_nodes = _pbs.ATTR_external_nodes
134ATTR_multi_req_alps = _pbs.ATTR_multi_req_alps
135ATTR_M = _pbs.ATTR_M
136ATTR_N = _pbs.ATTR_N
137ATTR_S = _pbs.ATTR_S
138ATTR_depend = _pbs.ATTR_depend
139ATTR_inter = _pbs.ATTR_inter
140ATTR_stagein = _pbs.ATTR_stagein
141ATTR_stageout = _pbs.ATTR_stageout
142ATTR_jobtype = _pbs.ATTR_jobtype
143ATTR_submit_host = _pbs.ATTR_submit_host
144ATTR_init_work_dir = _pbs.ATTR_init_work_dir
145ATTR_pbs_o_initdir = _pbs.ATTR_pbs_o_initdir
146ATTR_pbs_o_rootdir = _pbs.ATTR_pbs_o_rootdir
147ATTR_pbs_o_workdir = _pbs.ATTR_pbs_o_workdir
148ATTR_pbs_o_host = _pbs.ATTR_pbs_o_host
149ATTR_pbs_o_server = _pbs.ATTR_pbs_o_server
150ATTR_pbs_o_home = _pbs.ATTR_pbs_o_home
151ATTR_pbs_o_logname = _pbs.ATTR_pbs_o_logname
152ATTR_pbs_o_path = _pbs.ATTR_pbs_o_path
153ATTR_pbs_o_mail = _pbs.ATTR_pbs_o_mail
154ATTR_pbs_o_shell = _pbs.ATTR_pbs_o_shell
155ATTR_pbs_o_tz = _pbs.ATTR_pbs_o_tz
156ATTR_pbs_o_lang = _pbs.ATTR_pbs_o_lang
157ATTR_pbs_o_uid = _pbs.ATTR_pbs_o_uid
158ATTR_pbs_o_submit_filter = _pbs.ATTR_pbs_o_submit_filter
159ATTR_ctime = _pbs.ATTR_ctime
160ATTR_exechost = _pbs.ATTR_exechost
161ATTR_execport = _pbs.ATTR_execport
162ATTR_mtime = _pbs.ATTR_mtime
163ATTR_qtime = _pbs.ATTR_qtime
164ATTR_session = _pbs.ATTR_session
165ATTR_euser = _pbs.ATTR_euser
166ATTR_egroup = _pbs.ATTR_egroup
167ATTR_hashname = _pbs.ATTR_hashname
168ATTR_hopcount = _pbs.ATTR_hopcount
169ATTR_security = _pbs.ATTR_security
170ATTR_sched_hint = _pbs.ATTR_sched_hint
171ATTR_substate = _pbs.ATTR_substate
172ATTR_name = _pbs.ATTR_name
173ATTR_owner = _pbs.ATTR_owner
174ATTR_used = _pbs.ATTR_used
175ATTR_state = _pbs.ATTR_state
176ATTR_queue = _pbs.ATTR_queue
177ATTR_server = _pbs.ATTR_server
178ATTR_maxrun = _pbs.ATTR_maxrun
179ATTR_maxreport = _pbs.ATTR_maxreport
180ATTR_total = _pbs.ATTR_total
181ATTR_comment = _pbs.ATTR_comment
182ATTR_cookie = _pbs.ATTR_cookie
183ATTR_qrank = _pbs.ATTR_qrank
184ATTR_altid = _pbs.ATTR_altid
185ATTR_etime = _pbs.ATTR_etime
186ATTR_exitstat = _pbs.ATTR_exitstat
187ATTR_forwardx11 = _pbs.ATTR_forwardx11
188ATTR_submit_args = _pbs.ATTR_submit_args
189ATTR_tokens = _pbs.ATTR_tokens
190ATTR_netcounter = _pbs.ATTR_netcounter
191ATTR_umask = _pbs.ATTR_umask
192ATTR_start_time = _pbs.ATTR_start_time
193ATTR_start_count = _pbs.ATTR_start_count
194ATTR_checkpoint_dir = _pbs.ATTR_checkpoint_dir
195ATTR_checkpoint_name = _pbs.ATTR_checkpoint_name
196ATTR_checkpoint_time = _pbs.ATTR_checkpoint_time
197ATTR_checkpoint_restart_status = _pbs.ATTR_checkpoint_restart_status
198ATTR_restart_name = _pbs.ATTR_restart_name
199ATTR_comp_time = _pbs.ATTR_comp_time
200ATTR_reported = _pbs.ATTR_reported
201ATTR_intcmd = _pbs.ATTR_intcmd
202ATTR_job_radix = _pbs.ATTR_job_radix
203ATTR_sister_list = _pbs.ATTR_sister_list
204ATTR_total_runtime = _pbs.ATTR_total_runtime
205ATTR_P = _pbs.ATTR_P
206ATTR_node_exclusive = _pbs.ATTR_node_exclusive
207ATTR_exec_gpus = _pbs.ATTR_exec_gpus
208ATTR_exec_mics = _pbs.ATTR_exec_mics
209ATTR_J = _pbs.ATTR_J
210ATTR_pagg = _pbs.ATTR_pagg
211ATTR_system_start_time = _pbs.ATTR_system_start_time
212ATTR_gpu_flags = _pbs.ATTR_gpu_flags
213ATTR_aclgren = _pbs.ATTR_aclgren
214ATTR_aclgroup = _pbs.ATTR_aclgroup
215ATTR_aclhten = _pbs.ATTR_aclhten
216ATTR_aclhost = _pbs.ATTR_aclhost
217ATTR_acluren = _pbs.ATTR_acluren
218ATTR_acluser = _pbs.ATTR_acluser
219ATTR_altrouter = _pbs.ATTR_altrouter
220ATTR_checkpoint_min = _pbs.ATTR_checkpoint_min
221ATTR_checkpoint_defaults = _pbs.ATTR_checkpoint_defaults
222ATTR_enable = _pbs.ATTR_enable
223ATTR_fromroute = _pbs.ATTR_fromroute
224ATTR_hostlist = _pbs.ATTR_hostlist
225ATTR_killdelay = _pbs.ATTR_killdelay
226ATTR_maxgrprun = _pbs.ATTR_maxgrprun
227ATTR_maxque = _pbs.ATTR_maxque
228ATTR_maxuserque = _pbs.ATTR_maxuserque
229ATTR_maxuserrun = _pbs.ATTR_maxuserrun
230ATTR_qtype = _pbs.ATTR_qtype
231ATTR_rescassn = _pbs.ATTR_rescassn
232ATTR_rescdflt = _pbs.ATTR_rescdflt
233ATTR_rescmax = _pbs.ATTR_rescmax
234ATTR_rescmin = _pbs.ATTR_rescmin
235ATTR_featreqd = _pbs.ATTR_featreqd
236ATTR_req_login_property = _pbs.ATTR_req_login_property
237ATTR_rerunnable = _pbs.ATTR_rerunnable
238ATTR_rndzretry = _pbs.ATTR_rndzretry
239ATTR_routedest = _pbs.ATTR_routedest
240ATTR_routeheld = _pbs.ATTR_routeheld
241ATTR_routewait = _pbs.ATTR_routewait
242ATTR_routeretry = _pbs.ATTR_routeretry
243ATTR_routelife = _pbs.ATTR_routelife
244ATTR_rsvexpdt = _pbs.ATTR_rsvexpdt
245ATTR_rsvsync = _pbs.ATTR_rsvsync
246ATTR_start = _pbs.ATTR_start
247ATTR_count = _pbs.ATTR_count
248ATTR_number = _pbs.ATTR_number
249ATTR_acllogic = _pbs.ATTR_acllogic
250ATTR_aclgrpslpy = _pbs.ATTR_aclgrpslpy
251ATTR_keepcompleted = _pbs.ATTR_keepcompleted
252ATTR_disallowedtypes = _pbs.ATTR_disallowedtypes
253ATTR_is_transit = _pbs.ATTR_is_transit
254ATTR_aclroot = _pbs.ATTR_aclroot
255ATTR_managers = _pbs.ATTR_managers
256ATTR_dfltque = _pbs.ATTR_dfltque
257ATTR_dispsvrsuffix = _pbs.ATTR_dispsvrsuffix
258ATTR_jobsuffixalias = _pbs.ATTR_jobsuffixalias
259ATTR_defnode = _pbs.ATTR_defnode
260ATTR_locsvrs = _pbs.ATTR_locsvrs
261ATTR_logevents = _pbs.ATTR_logevents
262ATTR_logfile = _pbs.ATTR_logfile
263ATTR_loglevel = _pbs.ATTR_loglevel
264ATTR_mailfrom = _pbs.ATTR_mailfrom
265ATTR_nodepack = _pbs.ATTR_nodepack
266ATTR_nodesuffix = _pbs.ATTR_nodesuffix
267ATTR_operators = _pbs.ATTR_operators
268ATTR_queryother = _pbs.ATTR_queryother
269ATTR_resccost = _pbs.ATTR_resccost
270ATTR_rescavail = _pbs.ATTR_rescavail
271ATTR_schedit = _pbs.ATTR_schedit
272ATTR_scheduling = _pbs.ATTR_scheduling
273ATTR_status = _pbs.ATTR_status
274ATTR_syscost = _pbs.ATTR_syscost
275ATTR_pingrate = _pbs.ATTR_pingrate
276ATTR_ndchkrate = _pbs.ATTR_ndchkrate
277ATTR_tcptimeout = _pbs.ATTR_tcptimeout
278ATTR_jobstatrate = _pbs.ATTR_jobstatrate
279ATTR_polljobs = _pbs.ATTR_polljobs
280ATTR_downonerror = _pbs.ATTR_downonerror
281ATTR_disableserveridcheck = _pbs.ATTR_disableserveridcheck
282ATTR_jobnanny = _pbs.ATTR_jobnanny
283ATTR_ownerpurge = _pbs.ATTR_ownerpurge
284ATTR_qcqlimits = _pbs.ATTR_qcqlimits
285ATTR_momjobsync = _pbs.ATTR_momjobsync
286ATTR_maildomain = _pbs.ATTR_maildomain
287ATTR_pbsversion = _pbs.ATTR_pbsversion
288ATTR_submithosts = _pbs.ATTR_submithosts
289ATTR_allownodesubmit = _pbs.ATTR_allownodesubmit
290ATTR_allowproxyuser = _pbs.ATTR_allowproxyuser
291ATTR_autonodenp = _pbs.ATTR_autonodenp
292ATTR_servername = _pbs.ATTR_servername
293ATTR_logfilemaxsize = _pbs.ATTR_logfilemaxsize
294ATTR_logfilerolldepth = _pbs.ATTR_logfilerolldepth
295ATTR_logkeepdays = _pbs.ATTR_logkeepdays
296ATTR_nextjobnum = _pbs.ATTR_nextjobnum
297ATTR_extraresc = _pbs.ATTR_extraresc
298ATTR_schedversion = _pbs.ATTR_schedversion
299ATTR_acctkeepdays = _pbs.ATTR_acctkeepdays
300ATTR_lockfile = _pbs.ATTR_lockfile
301ATTR_credentiallifetime = _pbs.ATTR_credentiallifetime
302ATTR_jobmustreport = _pbs.ATTR_jobmustreport
303ATTR_LockfileUpdateTime = _pbs.ATTR_LockfileUpdateTime
304ATTR_LockfileCheckTime = _pbs.ATTR_LockfileCheckTime
305ATTR_npdefault = _pbs.ATTR_npdefault
306ATTR_clonebatchsize = _pbs.ATTR_clonebatchsize
307ATTR_clonebatchdelay = _pbs.ATTR_clonebatchdelay
308ATTR_jobstarttimeout = _pbs.ATTR_jobstarttimeout
309ATTR_jobforcecanceltime = _pbs.ATTR_jobforcecanceltime
310ATTR_maxarraysize = _pbs.ATTR_maxarraysize
311ATTR_maxslotlimit = _pbs.ATTR_maxslotlimit
312ATTR_recordjobinfo = _pbs.ATTR_recordjobinfo
313ATTR_recordjobscript = _pbs.ATTR_recordjobscript
314ATTR_joblogfilemaxsize = _pbs.ATTR_joblogfilemaxsize
315ATTR_joblogfilerolldepth = _pbs.ATTR_joblogfilerolldepth
316ATTR_joblogkeepdays = _pbs.ATTR_joblogkeepdays
317ATTR_minthreads = _pbs.ATTR_minthreads
318ATTR_maxthreads = _pbs.ATTR_maxthreads
319ATTR_threadidleseconds = _pbs.ATTR_threadidleseconds
320ATTR_moabarraycompatible = _pbs.ATTR_moabarraycompatible
321ATTR_nomailforce = _pbs.ATTR_nomailforce
322ATTR_interactivejobscanroam = _pbs.ATTR_interactivejobscanroam
323ATTR_crayenabled = _pbs.ATTR_crayenabled
324ATTR_nppcu = _pbs.ATTR_nppcu
325ATTR_login_node_key = _pbs.ATTR_login_node_key
326ATTR_maxuserqueuable = _pbs.ATTR_maxuserqueuable
327ATTR_automaticrequeueexitcode = _pbs.ATTR_automaticrequeueexitcode
328ATTR_jobsynctimeout = _pbs.ATTR_jobsynctimeout
329ATTR_pass_cpu_clock = _pbs.ATTR_pass_cpu_clock
330ATTR_NODE_state = _pbs.ATTR_NODE_state
331ATTR_NODE_power_state = _pbs.ATTR_NODE_power_state
332ATTR_NODE_np = _pbs.ATTR_NODE_np
333ATTR_NODE_properties = _pbs.ATTR_NODE_properties
334ATTR_NODE_ntype = _pbs.ATTR_NODE_ntype
335ATTR_NODE_jobs = _pbs.ATTR_NODE_jobs
336ATTR_NODE_status = _pbs.ATTR_NODE_status
337ATTR_NODE_note = _pbs.ATTR_NODE_note
338ATTR_NODE_mom_port = _pbs.ATTR_NODE_mom_port
339ATTR_NODE_mom_rm_port = _pbs.ATTR_NODE_mom_rm_port
340ATTR_NODE_num_node_boards = _pbs.ATTR_NODE_num_node_boards
341ATTR_NODE_numa_str = _pbs.ATTR_NODE_numa_str
342ATTR_NODE_gpus = _pbs.ATTR_NODE_gpus
343ATTR_NODE_gpustatus = _pbs.ATTR_NODE_gpustatus
344ATTR_NODE_gpus_str = _pbs.ATTR_NODE_gpus_str
345ATTR_NODE_mics = _pbs.ATTR_NODE_mics
346ATTR_NODE_micstatus = _pbs.ATTR_NODE_micstatus
347ATTR_copy_on_rerun = _pbs.ATTR_copy_on_rerun
348ATTR_job_exclusive_on_use = _pbs.ATTR_job_exclusive_on_use
349ATTR_mailsubjectfmt = _pbs.ATTR_mailsubjectfmt
350ATTR_mailbodyfmt = _pbs.ATTR_mailbodyfmt
351CHECKPOINT_UNSPECIFIED = _pbs.CHECKPOINT_UNSPECIFIED
352NO_HOLD = _pbs.NO_HOLD
353NO_JOIN = _pbs.NO_JOIN
354NO_KEEP = _pbs.NO_KEEP
355MAIL_AT_ABORT = _pbs.MAIL_AT_ABORT
356DEFAULT_PRIORITY = _pbs.DEFAULT_PRIORITY
357ARRAY_RANGE = _pbs.ARRAY_RANGE
358DELDELAY = _pbs.DELDELAY
359DELPURGE = _pbs.DELPURGE
360DELASYNC = _pbs.DELASYNC
361PURGECOMP = _pbs.PURGECOMP
362EXECQUEONLY = _pbs.EXECQUEONLY
363RERUNFORCE = _pbs.RERUNFORCE
364USER_HOLD = _pbs.USER_HOLD
365OTHER_HOLD = _pbs.OTHER_HOLD
366SYSTEM_HOLD = _pbs.SYSTEM_HOLD
367ND_free = _pbs.ND_free
368ND_offline = _pbs.ND_offline
369ND_down = _pbs.ND_down
370ND_reserve = _pbs.ND_reserve
371ND_job_exclusive = _pbs.ND_job_exclusive
372ND_job_sharing = _pbs.ND_job_sharing
373ND_busy = _pbs.ND_busy
374ND_state_unknown = _pbs.ND_state_unknown
375ND_running = _pbs.ND_running
376ND_standby = _pbs.ND_standby
377ND_suspend = _pbs.ND_suspend
378ND_sleep = _pbs.ND_sleep
379ND_hibernate = _pbs.ND_hibernate
380ND_shutdown = _pbs.ND_shutdown
381ND_active = _pbs.ND_active
382ND_all = _pbs.ND_all
383ND_up = _pbs.ND_up
384ND_timeshared = _pbs.ND_timeshared
385ND_cluster = _pbs.ND_cluster
386Q_DT_batch = _pbs.Q_DT_batch
387Q_DT_interactive = _pbs.Q_DT_interactive
388Q_DT_rerunable = _pbs.Q_DT_rerunable
389Q_DT_nonrerunable = _pbs.Q_DT_nonrerunable
390Q_DT_fault_tolerant = _pbs.Q_DT_fault_tolerant
391Q_DT_fault_intolerant = _pbs.Q_DT_fault_intolerant
392Q_DT_job_array = _pbs.Q_DT_job_array
393MAX_ENCODE_BFR = _pbs.MAX_ENCODE_BFR
394MGR_CMD_CREATE = _pbs.MGR_CMD_CREATE
395MGR_CMD_DELETE = _pbs.MGR_CMD_DELETE
396MGR_CMD_SET = _pbs.MGR_CMD_SET
397MGR_CMD_UNSET = _pbs.MGR_CMD_UNSET
398MGR_CMD_LIST = _pbs.MGR_CMD_LIST
399MGR_CMD_PRINT = _pbs.MGR_CMD_PRINT
400MGR_CMD_ACTIVE = _pbs.MGR_CMD_ACTIVE
401MGR_OBJ_NONE = _pbs.MGR_OBJ_NONE
402MGR_OBJ_SERVER = _pbs.MGR_OBJ_SERVER
403MGR_OBJ_QUEUE = _pbs.MGR_OBJ_QUEUE
404MGR_OBJ_JOB = _pbs.MGR_OBJ_JOB
405MGR_OBJ_NODE = _pbs.MGR_OBJ_NODE
406MSG_OUT = _pbs.MSG_OUT
407MSG_ERR = _pbs.MSG_ERR
408SHUT_SIG = _pbs.SHUT_SIG
409SHUT_IMMEDIATE = _pbs.SHUT_IMMEDIATE
410SHUT_DELAY = _pbs.SHUT_DELAY
411SHUT_QUICK = _pbs.SHUT_QUICK
412SIG_RESUME = _pbs.SIG_RESUME
413SIG_SUSPEND = _pbs.SIG_SUSPEND
414PBS_MAXHOSTNAME = _pbs.PBS_MAXHOSTNAME
415MAXPATHLEN = _pbs.MAXPATHLEN
416MAXPORTLEN = _pbs.MAXPORTLEN
417MAXNAMLEN = _pbs.MAXNAMLEN
418MAX_NOTE = _pbs.MAX_NOTE
419MAX_NOTE_STR = _pbs.MAX_NOTE_STR
420PBS_MAXUSER = _pbs.PBS_MAXUSER
421PBS_MAXGRPN = _pbs.PBS_MAXGRPN
422PBS_MAXGPUID = _pbs.PBS_MAXGPUID
423PBS_MAXQUEUENAME = _pbs.PBS_MAXQUEUENAME
424PBS_MAXSERVERNAME = _pbs.PBS_MAXSERVERNAME
425PBS_MAXJOBARRAYLEN = _pbs.PBS_MAXJOBARRAYLEN
426PBS_MAXSEQNUM = _pbs.PBS_MAXSEQNUM
427PBS_MAXPORTNUM = _pbs.PBS_MAXPORTNUM
428PBS_MAXJOBARRAY = _pbs.PBS_MAXJOBARRAY
429PBS_MAXSVRJOBID = _pbs.PBS_MAXSVRJOBID
430PBS_MAXCLTJOBID = _pbs.PBS_MAXCLTJOBID
431PBS_MAXDEST = _pbs.PBS_MAXDEST
432PBS_MAXROUTEDEST = _pbs.PBS_MAXROUTEDEST
433PBS_USE_IFF = _pbs.PBS_USE_IFF
434PBS_INTERACTIVE = _pbs.PBS_INTERACTIVE
435PBS_TERM_BUF_SZ = _pbs.PBS_TERM_BUF_SZ
436PBS_TERM_CCA = _pbs.PBS_TERM_CCA
437PBS_MAXCREDENTIAL_LEN = _pbs.PBS_MAXCREDENTIAL_LEN
438PBS_QS_VERSION_BASE = _pbs.PBS_QS_VERSION_BASE
439PBS_QS_VERSION_INT = _pbs.PBS_QS_VERSION_INT
440PBS_QS_VERSION = _pbs.PBS_QS_VERSION
441PBS_BATCH_SERVICE_NAME = _pbs.PBS_BATCH_SERVICE_NAME
442PBS_BATCH_SERVICE_PORT = _pbs.PBS_BATCH_SERVICE_PORT
443PBS_BATCH_SERVICE_NAME_DIS = _pbs.PBS_BATCH_SERVICE_NAME_DIS
444PBS_MOM_SERVICE_NAME = _pbs.PBS_MOM_SERVICE_NAME
445PBS_MOM_SERVICE_PORT = _pbs.PBS_MOM_SERVICE_PORT
446PBS_MANAGER_SERVICE_NAME = _pbs.PBS_MANAGER_SERVICE_NAME
447PBS_MANAGER_SERVICE_PORT = _pbs.PBS_MANAGER_SERVICE_PORT
448PBS_SCHEDULER_SERVICE_NAME = _pbs.PBS_SCHEDULER_SERVICE_NAME
449PBS_SCHEDULER_SERVICE_PORT = _pbs.PBS_SCHEDULER_SERVICE_PORT
450TRQ_AUTHD_SERVICE_PORT = _pbs.TRQ_AUTHD_SERVICE_PORT
451CHECKPOINTHOLD = _pbs.CHECKPOINTHOLD
452CHECKPOINTCONT = _pbs.CHECKPOINTCONT
453MOM_DEFAULT_CHECKPOINT_DIR = _pbs.MOM_DEFAULT_CHECKPOINT_DIR
454NO_MOM_RELAY = _pbs.NO_MOM_RELAY
455SET = _pbs.SET
456UNSET = _pbs.UNSET
457INCR = _pbs.INCR
458DECR = _pbs.DECR
459EQ = _pbs.EQ
460NE = _pbs.NE
461GE = _pbs.GE
462GT = _pbs.GT
463LE = _pbs.LE
464LT = _pbs.LT
465DFLT = _pbs.DFLT
466MERGE = _pbs.MERGE
467INCR_OLD = _pbs.INCR_OLD
468NPPCU_ALPS_CHOOSES = _pbs.NPPCU_ALPS_CHOOSES
469NPPCU_NO_USE_HT = _pbs.NPPCU_NO_USE_HT
470NPPCU_USE_HT = _pbs.NPPCU_USE_HT
471class attrl(_object):
472    __swig_setmethods__ = {}
473    __setattr__ = lambda self, name, value: _swig_setattr(self, attrl, name, value)
474    __swig_getmethods__ = {}
475    __getattr__ = lambda self, name: _swig_getattr(self, attrl, name)
476    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
477    __repr__ = _swig_repr
478    __swig_setmethods__["next"] = _pbs.attrl_next_set
479    __swig_getmethods__["next"] = _pbs.attrl_next_get
480    if _newclass:next = _swig_property(_pbs.attrl_next_get, _pbs.attrl_next_set)
481    __swig_setmethods__["name"] = _pbs.attrl_name_set
482    __swig_getmethods__["name"] = _pbs.attrl_name_get
483    if _newclass:name = _swig_property(_pbs.attrl_name_get, _pbs.attrl_name_set)
484    __swig_setmethods__["resource"] = _pbs.attrl_resource_set
485    __swig_getmethods__["resource"] = _pbs.attrl_resource_get
486    if _newclass:resource = _swig_property(_pbs.attrl_resource_get, _pbs.attrl_resource_set)
487    __swig_setmethods__["value"] = _pbs.attrl_value_set
488    __swig_getmethods__["value"] = _pbs.attrl_value_get
489    if _newclass:value = _swig_property(_pbs.attrl_value_get, _pbs.attrl_value_set)
490    __swig_setmethods__["op"] = _pbs.attrl_op_set
491    __swig_getmethods__["op"] = _pbs.attrl_op_get
492    if _newclass:op = _swig_property(_pbs.attrl_op_get, _pbs.attrl_op_set)
493    def __str__(self): return _pbs.attrl___str__(self)
494    __swig_destroy__ = _pbs.delete_attrl
495    __del__ = lambda self : None;
496attrl_swigregister = _pbs.attrl_swigregister
497attrl_swigregister(attrl)
498
499class attropl(_object):
500    __swig_setmethods__ = {}
501    __setattr__ = lambda self, name, value: _swig_setattr(self, attropl, name, value)
502    __swig_getmethods__ = {}
503    __getattr__ = lambda self, name: _swig_getattr(self, attropl, name)
504    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
505    __repr__ = _swig_repr
506    __swig_setmethods__["next"] = _pbs.attropl_next_set
507    __swig_getmethods__["next"] = _pbs.attropl_next_get
508    if _newclass:next = _swig_property(_pbs.attropl_next_get, _pbs.attropl_next_set)
509    __swig_setmethods__["name"] = _pbs.attropl_name_set
510    __swig_getmethods__["name"] = _pbs.attropl_name_get
511    if _newclass:name = _swig_property(_pbs.attropl_name_get, _pbs.attropl_name_set)
512    __swig_setmethods__["resource"] = _pbs.attropl_resource_set
513    __swig_getmethods__["resource"] = _pbs.attropl_resource_get
514    if _newclass:resource = _swig_property(_pbs.attropl_resource_get, _pbs.attropl_resource_set)
515    __swig_setmethods__["value"] = _pbs.attropl_value_set
516    __swig_getmethods__["value"] = _pbs.attropl_value_get
517    if _newclass:value = _swig_property(_pbs.attropl_value_get, _pbs.attropl_value_set)
518    __swig_setmethods__["op"] = _pbs.attropl_op_set
519    __swig_getmethods__["op"] = _pbs.attropl_op_get
520    if _newclass:op = _swig_property(_pbs.attropl_op_get, _pbs.attropl_op_set)
521    def __str__(self): return _pbs.attropl___str__(self)
522    __swig_destroy__ = _pbs.delete_attropl
523    __del__ = lambda self : None;
524attropl_swigregister = _pbs.attropl_swigregister
525attropl_swigregister(attropl)
526
527class batch_status(_object):
528    __swig_setmethods__ = {}
529    __setattr__ = lambda self, name, value: _swig_setattr(self, batch_status, name, value)
530    __swig_getmethods__ = {}
531    __getattr__ = lambda self, name: _swig_getattr(self, batch_status, name)
532    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
533    __repr__ = _swig_repr
534    __swig_setmethods__["next"] = _pbs.batch_status_next_set
535    __swig_getmethods__["next"] = _pbs.batch_status_next_get
536    if _newclass:next = _swig_property(_pbs.batch_status_next_get, _pbs.batch_status_next_set)
537    __swig_setmethods__["name"] = _pbs.batch_status_name_set
538    __swig_getmethods__["name"] = _pbs.batch_status_name_get
539    if _newclass:name = _swig_property(_pbs.batch_status_name_get, _pbs.batch_status_name_set)
540    __swig_setmethods__["attribs"] = _pbs.batch_status_attribs_set
541    __swig_getmethods__["attribs"] = _pbs.batch_status_attribs_get
542    if _newclass:attribs = _swig_property(_pbs.batch_status_attribs_get, _pbs.batch_status_attribs_set)
543    __swig_setmethods__["text"] = _pbs.batch_status_text_set
544    __swig_getmethods__["text"] = _pbs.batch_status_text_get
545    if _newclass:text = _swig_property(_pbs.batch_status_text_get, _pbs.batch_status_text_set)
546batch_status_swigregister = _pbs.batch_status_swigregister
547batch_status_swigregister(batch_status)
548
549
550def avail(*args):
551  return _pbs.avail(*args)
552avail = _pbs.avail
553
554def pbs_asyrunjob(*args):
555  return _pbs.pbs_asyrunjob(*args)
556pbs_asyrunjob = _pbs.pbs_asyrunjob
557
558def pbs_alterjob_async(*args):
559  return _pbs.pbs_alterjob_async(*args)
560pbs_alterjob_async = _pbs.pbs_alterjob_async
561
562def pbs_alterjob(*args):
563  return _pbs.pbs_alterjob(*args)
564pbs_alterjob = _pbs.pbs_alterjob
565
566def pbs_connect(*args):
567  return _pbs.pbs_connect(*args)
568pbs_connect = _pbs.pbs_connect
569
570def pbs_query_max_connections():
571  return _pbs.pbs_query_max_connections()
572pbs_query_max_connections = _pbs.pbs_query_max_connections
573
574def pbs_default():
575  return _pbs.pbs_default()
576pbs_default = _pbs.pbs_default
577
578def pbs_fbserver():
579  return _pbs.pbs_fbserver()
580pbs_fbserver = _pbs.pbs_fbserver
581
582def pbs_get_server_list():
583  return _pbs.pbs_get_server_list()
584pbs_get_server_list = _pbs.pbs_get_server_list
585
586def pbs_deljob(*args):
587  return _pbs.pbs_deljob(*args)
588pbs_deljob = _pbs.pbs_deljob
589
590def pbs_disconnect(*args):
591  return _pbs.pbs_disconnect(*args)
592pbs_disconnect = _pbs.pbs_disconnect
593
594def pbs_geterrmsg(*args):
595  return _pbs.pbs_geterrmsg(*args)
596pbs_geterrmsg = _pbs.pbs_geterrmsg
597
598def pbs_holdjob(*args):
599  return _pbs.pbs_holdjob(*args)
600pbs_holdjob = _pbs.pbs_holdjob
601
602def pbs_checkpointjob(*args):
603  return _pbs.pbs_checkpointjob(*args)
604pbs_checkpointjob = _pbs.pbs_checkpointjob
605
606def pbs_locjob(*args):
607  return _pbs.pbs_locjob(*args)
608pbs_locjob = _pbs.pbs_locjob
609
610def pbs_manager(*args):
611  return _pbs.pbs_manager(*args)
612pbs_manager = _pbs.pbs_manager
613
614def pbs_movejob(*args):
615  return _pbs.pbs_movejob(*args)
616pbs_movejob = _pbs.pbs_movejob
617
618def pbs_msgjob(*args):
619  return _pbs.pbs_msgjob(*args)
620pbs_msgjob = _pbs.pbs_msgjob
621
622def pbs_orderjob(*args):
623  return _pbs.pbs_orderjob(*args)
624pbs_orderjob = _pbs.pbs_orderjob
625
626def pbs_rescquery(*args):
627  return _pbs.pbs_rescquery(*args)
628pbs_rescquery = _pbs.pbs_rescquery
629
630def pbs_rescreserve(*args):
631  return _pbs.pbs_rescreserve(*args)
632pbs_rescreserve = _pbs.pbs_rescreserve
633
634def pbs_rescrelease(*args):
635  return _pbs.pbs_rescrelease(*args)
636pbs_rescrelease = _pbs.pbs_rescrelease
637
638def pbs_rerunjob(*args):
639  return _pbs.pbs_rerunjob(*args)
640pbs_rerunjob = _pbs.pbs_rerunjob
641
642def pbs_rlsjob(*args):
643  return _pbs.pbs_rlsjob(*args)
644pbs_rlsjob = _pbs.pbs_rlsjob
645
646def pbs_runjob(*args):
647  return _pbs.pbs_runjob(*args)
648pbs_runjob = _pbs.pbs_runjob
649
650def pbs_selectjob(*args):
651  return _pbs.pbs_selectjob(*args)
652pbs_selectjob = _pbs.pbs_selectjob
653
654def pbs_sigjob(*args):
655  return _pbs.pbs_sigjob(*args)
656pbs_sigjob = _pbs.pbs_sigjob
657
658def pbs_sigjobasync(*args):
659  return _pbs.pbs_sigjobasync(*args)
660pbs_sigjobasync = _pbs.pbs_sigjobasync
661
662def pbs_statfree(*args):
663  return _pbs.pbs_statfree(*args)
664pbs_statfree = _pbs.pbs_statfree
665
666def pbs_statjob(*args):
667  return _pbs.pbs_statjob(*args)
668pbs_statjob = _pbs.pbs_statjob
669
670def pbs_selstat(*args):
671  return _pbs.pbs_selstat(*args)
672pbs_selstat = _pbs.pbs_selstat
673
674def pbs_statque(*args):
675  return _pbs.pbs_statque(*args)
676pbs_statque = _pbs.pbs_statque
677
678def pbs_statserver(*args):
679  return _pbs.pbs_statserver(*args)
680pbs_statserver = _pbs.pbs_statserver
681
682def pbs_statnode(*args):
683  return _pbs.pbs_statnode(*args)
684pbs_statnode = _pbs.pbs_statnode
685
686def pbs_submit(*args):
687  return _pbs.pbs_submit(*args)
688pbs_submit = _pbs.pbs_submit
689
690def pbs_submit_hash_ext(*args):
691  return _pbs.pbs_submit_hash_ext(*args)
692pbs_submit_hash_ext = _pbs.pbs_submit_hash_ext
693
694def pbs_terminate(*args):
695  return _pbs.pbs_terminate(*args)
696pbs_terminate = _pbs.pbs_terminate
697
698def totpool(*args):
699  return _pbs.totpool(*args)
700totpool = _pbs.totpool
701
702def usepool(*args):
703  return _pbs.usepool(*args)
704usepool = _pbs.usepool
705
706def pbs_gpumode(*args):
707  return _pbs.pbs_gpumode(*args)
708pbs_gpumode = _pbs.pbs_gpumode
709
710def trq_set_preferred_network_interface(*args):
711  return _pbs.trq_set_preferred_network_interface(*args)
712trq_set_preferred_network_interface = _pbs.trq_set_preferred_network_interface
713
714def trq_get_if_name():
715  return _pbs.trq_get_if_name()
716trq_get_if_name = _pbs.trq_get_if_name
717
718def pbs_stagein(*args):
719  return _pbs.pbs_stagein(*args)
720pbs_stagein = _pbs.pbs_stagein
721
722def openrm(*args):
723  return _pbs.openrm(*args)
724openrm = _pbs.openrm
725
726def closerm_err(*args):
727  return _pbs.closerm_err(*args)
728closerm_err = _pbs.closerm_err
729
730def closerm(*args):
731  return _pbs.closerm(*args)
732closerm = _pbs.closerm
733
734def downrm(*args):
735  return _pbs.downrm(*args)
736downrm = _pbs.downrm
737
738def configrm(*args):
739  return _pbs.configrm(*args)
740configrm = _pbs.configrm
741
742def addreq_err(*args):
743  return _pbs.addreq_err(*args)
744addreq_err = _pbs.addreq_err
745
746def begin_rm_req(*args):
747  return _pbs.begin_rm_req(*args)
748begin_rm_req = _pbs.begin_rm_req
749
750def addreq(*args):
751  return _pbs.addreq(*args)
752addreq = _pbs.addreq
753
754def allreq(*args):
755  return _pbs.allreq(*args)
756allreq = _pbs.allreq
757
758def getreq_err(*args):
759  return _pbs.getreq_err(*args)
760getreq_err = _pbs.getreq_err
761
762def getreq(*args):
763  return _pbs.getreq(*args)
764getreq = _pbs.getreq
765
766def flushreq():
767  return _pbs.flushreq()
768flushreq = _pbs.flushreq
769
770def activereq():
771  return _pbs.activereq()
772activereq = _pbs.activereq
773
774def fullresp(*args):
775  return _pbs.fullresp(*args)
776fullresp = _pbs.fullresp
777LOG_BUF_SIZE = _pbs.LOG_BUF_SIZE
778LOCAL_LOG_BUF_SIZE = _pbs.LOCAL_LOG_BUF_SIZE
779LOG_EMERG = _pbs.LOG_EMERG
780LOG_ALERT = _pbs.LOG_ALERT
781LOG_CRIT = _pbs.LOG_CRIT
782LOG_ERR = _pbs.LOG_ERR
783LOG_WARNING = _pbs.LOG_WARNING
784LOG_NOTICE = _pbs.LOG_NOTICE
785LOG_INFO = _pbs.LOG_INFO
786LOG_DEBUG = _pbs.LOG_DEBUG
787MAXLINE = _pbs.MAXLINE
788GETV = _pbs.GETV
789SETV = _pbs.SETV
790
791def log_err(*args):
792  return _pbs.log_err(*args)
793log_err = _pbs.log_err
794
795def log_ext(*args):
796  return _pbs.log_ext(*args)
797log_ext = _pbs.log_ext
798
799def log_event(*args):
800  return _pbs.log_event(*args)
801log_event = _pbs.log_event
802
803def log_record(*args):
804  return _pbs.log_record(*args)
805log_record = _pbs.log_record
806
807def log_available(*args):
808  return _pbs.log_available(*args)
809log_available = _pbs.log_available
810
811def log_init(*args):
812  return _pbs.log_init(*args)
813log_init = _pbs.log_init
814
815def chk_file_sec(*args):
816  return _pbs.chk_file_sec(*args)
817chk_file_sec = _pbs.chk_file_sec
818PBSEVENT_ERROR = _pbs.PBSEVENT_ERROR
819PBSEVENT_SYSTEM = _pbs.PBSEVENT_SYSTEM
820PBSEVENT_ADMIN = _pbs.PBSEVENT_ADMIN
821PBSEVENT_JOB = _pbs.PBSEVENT_JOB
822PBSEVENT_JOB_USAGE = _pbs.PBSEVENT_JOB_USAGE
823PBSEVENT_SECURITY = _pbs.PBSEVENT_SECURITY
824PBSEVENT_SCHED = _pbs.PBSEVENT_SCHED
825PBSEVENT_DEBUG = _pbs.PBSEVENT_DEBUG
826PBSEVENT_DEBUG2 = _pbs.PBSEVENT_DEBUG2
827PBSEVENT_CLIENTAUTH = _pbs.PBSEVENT_CLIENTAUTH
828PBSEVENT_SYSLOG = _pbs.PBSEVENT_SYSLOG
829PBSEVENT_FORCE = _pbs.PBSEVENT_FORCE
830PBS_EVENTCLASS_SERVER = _pbs.PBS_EVENTCLASS_SERVER
831PBS_EVENTCLASS_QUEUE = _pbs.PBS_EVENTCLASS_QUEUE
832PBS_EVENTCLASS_JOB = _pbs.PBS_EVENTCLASS_JOB
833PBS_EVENTCLASS_REQUEST = _pbs.PBS_EVENTCLASS_REQUEST
834PBS_EVENTCLASS_FILE = _pbs.PBS_EVENTCLASS_FILE
835PBS_EVENTCLASS_ACCT = _pbs.PBS_EVENTCLASS_ACCT
836PBS_EVENTCLASS_NODE = _pbs.PBS_EVENTCLASS_NODE
837PBS_EVENTCLASS_TRQAUTHD = _pbs.PBS_EVENTCLASS_TRQAUTHD
838PBSEVENT_MASK = _pbs.PBSEVENT_MASK
839MAX_PATH_LEN = _pbs.MAX_PATH_LEN
840SECS_PER_DAY = _pbs.SECS_PER_DAY
841TRUE = _pbs.TRUE
842FALSE = _pbs.FALSE
843PBSE_TOTAL_CEILING = _pbs.PBSE_TOTAL_CEILING
844PBSE_ = _pbs.PBSE_
845PBSE_NONE = _pbs.PBSE_NONE
846
847def pbse_to_txt(*args):
848  return _pbs.pbse_to_txt(*args)
849pbse_to_txt = _pbs.pbse_to_txt
850
851def pbs_strerror(*args):
852  return _pbs.pbs_strerror(*args)
853pbs_strerror = _pbs.pbs_strerror
854#  PBS python interface
855#  Author: Bas van der Vlies <bas.vandervlies@surfsara.nl>
856#  Date  : 27 Feb 2002
857#  Desc. : This is python wrapper class for getting the resource
858#          mom values.
859#
860# CVS info
861# $Id: resmom.py,v 1.6 2002/10/21 14:14:47 sscpbas Exp $
862# $Date: 2002/10/21 14:14:47 $
863# $Revision: 1.6 $
864#
865import string
866import types
867
868# Default linux resources to get from the mom
869#
870default_linux_res = [   
871    "availmem",     # available memory size in KB
872    "ideal_load",       # static ideal_load value
873    "loadave",      # the current load average
874    "max_load",     # static max_load value
875    "ncpus",        # number of cpus
876    "physmem",      # physical memory size in KB
877    "resi",                 # resident memory size for a pid or session in KB
878    "totmem",       # total memory size in KB
879    "walltime",     # wall clock time for a pid
880]
881
882# Default irix6 resources to get from the mom
883#
884default_irix6_res = [   
885    "availmem", # available memory size in KB
886    "loadave",      # the current load average
887    "ncpus",        # number of cpus
888    "physmem",      # physical memory size in KB
889    "resi",             # resident memory size for a pid or session in KB
890    "walltime", # wall clock time for a pid
891    "quota",    # quota information (sizes in KB)
892]
893
894default_mom_res = [   
895    "arch",             # the architecture of the machine
896    "uname",    # the architecture of the machine
897    "cput",             # cpu time for a pid or session
898    "idletime", # seconds of idle time
899    "mem",              # memory size for a pid or session in KB
900    "sessions", # list of sessions in the system
901    "pids",         # list of pids in a session
902    "nsessions",        # number of sessions in the system
903    "nusers",   # number of users in the system
904    "size",             # size of a file or filesystem
905    "host",             # Name  of host on which job should be run
906    "nodes",    # Number and/or type of nodes to be reserved for exclusive use by the job
907    "other",    # Allows a  user  to  specify  site  specific  information
908    "software", # Allows a user to specify software required by the job
909]
910
911def check_resp(dict, str):
912  """
913  Check the daemon response. If we have no permission to
914  query the values then we got a 'None' response. Else
915  if we supplied a keyword that does not exits we get a
916  '?' response
917  """
918  if not str:
919    return
920 
921  ## Value can contain the '=' char :-(
922 
923  l =  string.split(str, '=')
924  key = string.strip(l[0])
925  if len(l) > 2:
926    val = string.strip( '='.join(l[1:]) )
927  else:
928    val = string.strip(l[1])
929
930  key = string.strip(key)
931  val = string.strip(val)
932
933  # Did we got a valid response
934  #
935  if not val[0] == '?':
936    dict[key] = val
937
938def use_default_keywords(id, d):
939  """
940  Get the default values from the mom daemon
941  """
942  err = 0
943  for res in default_mom_res:
944    addreq(id, res)
945    resp = getreq(id)
946    check_resp(d, resp)
947
948  # Do not proceed if we have an empty dictionary
949  #
950  if not d:
951    return
952
953  if d['arch' ] == 'linux':
954    for res in default_linux_res:
955      addreq(id, res)
956      resp = getreq(id)
957      check_resp(d, resp)
958
959def use_user_keywords(id, d, l):
960  for res in l:
961    if type(res) is types.StringType:
962      addreq(id, res)
963      resp = getreq(id)
964      check_resp(d, resp)
965    else:
966      raise TypeError, 'Expected a string got %s :%s' %(type(res), res) 
967
968def get_mom_values(id, list = None):
969  """
970  This function will query the mom with a default resmon keywords
971  and 'arch' depended keywords. Supported archs are:
972    linux
973    irix6
974  User can also supply their own list of keywords as second parameter.
975  arguments:
976    id   : connection number with mom daemon on a node
977    list : optional parameter. If supplied then use this. A list
978           of mom keywords.
979  """
980
981  d = {}
982  if not list:
983    use_default_keywords(id, d)
984  else:
985    use_user_keywords(id, d , list)
986     
987  return d
988
989version_info = ( 4, 4, 0 )
990version = 'SARA pbs_python version 4.4.0'
991
992## A useful dict with error codes to text
993#
994# Author: Bas van der Vlies <bas.vandervlies@surfsara.nl>
995#
996# SVN Info:
997#       $Id: errors.py 429 2005-11-04 13:59:06Z bas $
998#
999
1000def error():
1001  """
1002  Check if there is an error, if so fetch the error message string.
1003  It says more then a number!
1004  """
1005  e = get_error()
1006  return (e, pbs_strerror(e))
1007#     return (e, errors_txt[e])
1008#  else:
1009#     return (e, "Could not find a text for this error, uhhh")
1010
1011# This file is compatible with both classic and new-style classes.
1012
1013cvar = _pbs.cvar
1014
Note: See TracBrowser for help on using the repository browser.