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