Definition at line 288 of file TransformConfig.py.
◆ __init__()
def python.TransformConfig.JobConfigMetaClass.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
bases, |
|
|
|
dict |
|
) |
| |
Definition at line 289 of file TransformConfig.py.
289 def __init__( self, name, bases, dict ):
290 if '__slots__' not in dict:
291 raise TransformConfigError(
'Class %s does not have member __slots__. Please add __slots__ = ()'
292 ' to the class definition' % (name,) )
297 slots = self.__slots__
298 descrName =
'__properties'
299 if descrName
not in slots:
301 slots += ( descrName, )
303 dict[
'__slots__'] = slots
305 setattr(self,descrName,[])
306 descrList = getattr(self,descrName)
308 for n,attrib
in dict.items():
309 if isinstance(attrib,Descriptor):
310 setattr(attrib,
'_Descriptor__name',n)
311 descrList.append(attrib)
313 type.__init__(self,name,bases,dict)
The documentation for this class was generated from the following file: