Changeset 110 for trunk/pbs_swig/distro/src/pbs.py
- Timestamp:
- 04/20/06 14:28:20 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_swig/distro/src/pbs.py
r106 r110 5 5 import _pbs 6 6 7 def _swig_setattr (self,class_type,name,value):7 def _swig_setattr_nondynamic(self,class_type,name,value,static=1): 8 8 if (name == "this"): 9 9 if isinstance(value, class_type): … … 14 14 method = class_type.__swig_setmethods__.get(name,None) 15 15 if method: return method(self,value) 16 self.__dict__[name] = value 16 if (not static) or hasattr(self,name) or (name == "thisown"): 17 self.__dict__[name] = value 18 else: 19 raise AttributeError("You cannot add attributes to %s" % self) 20 21 def _swig_setattr(self,class_type,name,value): 22 return _swig_setattr_nondynamic(self,class_type,name,value,0) 17 23 18 24 def _swig_getattr(self,class_type,name): … … 228 234 def __init__(self): raise RuntimeError, "No constructor defined" 229 235 def __repr__(self): 230 return "< C attrl instance at %s>" % (self.this,)236 return "<%s.%s; proxy of C attrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) 231 237 __swig_setmethods__["name"] = _pbs.attrl_name_set 232 238 __swig_getmethods__["name"] = _pbs.attrl_name_get … … 257 263 def __init__(self): raise RuntimeError, "No constructor defined" 258 264 def __repr__(self): 259 return "< C attropl instance at %s>" % (self.this,)265 return "<%s.%s; proxy of C attropl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) 260 266 __swig_setmethods__["name"] = _pbs.attropl_name_set 261 267 __swig_getmethods__["name"] = _pbs.attropl_name_get … … 286 292 def __init__(self): raise RuntimeError, "No constructor defined" 287 293 def __repr__(self): 288 return "< C batch_status instance at %s>" % (self.this,)294 return "<%s.%s; proxy of C batch_status instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) 289 295 __swig_setmethods__["name"] = _pbs.batch_status_name_set 290 296 __swig_getmethods__["name"] = _pbs.batch_status_name_get … … 549 555 Returns the pbs python interface version as a string. 550 556 """ 551 return '2. 8.2'557 return '2.9.0' 552 558 553 559 # A useful dict with error codes to text
Note: See TracChangeset
for help on using the changeset viewer.