Definition at line 77 of file JobProperties.py.
◆ __new__()
def python.JobProperties._JobPropertyMeta.__new__ |
( |
|
self, |
|
|
|
name, |
|
|
|
bases, |
|
|
|
dct |
|
) |
| |
Definition at line 78 of file JobProperties.py.
78 def __new__( self, name, bases, dct ):
81 sv = dct[
'StoredValue' ]
82 if sv
is not None and not _isCompatible( dct[
'allowedTypes' ], sv ):
84 'type of StoredValue (%s) not in allowedTypes (%s)' %
85 (
type(sv).__name__,dct[
'allowedTypes' ])
92 sv = dct[
'StoredValue' ]
93 if sv
is not None and dct[
'allowedValues' ]
and sv
not in dct[
'allowedValues' ]:
95 'value of StoredValue (%s) not in allowedValues (%s)' %
96 (
str(sv),dct[
'allowedValues' ])
101 return type.__new__( self, name, bases, dct )
104 @functools.total_ordering
The documentation for this class was generated from the following file: