Ignore:
Timestamp:
04/20/06 14:28:20 (18 years ago)
Author:
bas
Message:

distro:

  • New release 2.9.0
  • New build system for torque 2.1.0 and higher
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_swig/distro/src/pbs.py

    r106 r110  
    55import _pbs
    66
    7 def _swig_setattr(self,class_type,name,value):
     7def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    88    if (name == "this"):
    99        if isinstance(value, class_type):
     
    1414    method = class_type.__swig_setmethods__.get(name,None)
    1515    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
     21def _swig_setattr(self,class_type,name,value):
     22    return _swig_setattr_nondynamic(self,class_type,name,value,0)
    1723
    1824def _swig_getattr(self,class_type,name):
     
    228234    def __init__(self): raise RuntimeError, "No constructor defined"
    229235    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,)
    231237    __swig_setmethods__["name"] = _pbs.attrl_name_set
    232238    __swig_getmethods__["name"] = _pbs.attrl_name_get
     
    257263    def __init__(self): raise RuntimeError, "No constructor defined"
    258264    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,)
    260266    __swig_setmethods__["name"] = _pbs.attropl_name_set
    261267    __swig_getmethods__["name"] = _pbs.attropl_name_get
     
    286292    def __init__(self): raise RuntimeError, "No constructor defined"
    287293    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,)
    289295    __swig_setmethods__["name"] = _pbs.batch_status_name_set
    290296    __swig_getmethods__["name"] = _pbs.batch_status_name_get
     
    549555  Returns the pbs python interface version as a string.
    550556  """
    551   return '2.8.2'
     557  return '2.9.0'
    552558
    553559# A useful dict with error codes to text
Note: See TracChangeset for help on using the changeset viewer.