def __init__(self, clazz, container): ''' Constructs the authenticated type model based on the provided type model. @see: TypeModel.__init__ ''' TypeModel.__init__(self, clazz, container) self._childTypeId = None
def __init__(self, clazz, base): ''' Construct the mapped type model based on the provided base type model. @param base: TypeModel The base type model for this mapped model ''' assert isinstance(base, TypeModel), 'Invalid base type model %s' % base assert not isinstance(base, TypeModelMapped), 'Invalid base type model %s, is already a mapped type' % base TypeModel.__init__(self, clazz, base.container) self.base = base
def __init__(self, clazz, base): ''' Construct the mapped type model based on the provided base type model. @param base: TypeModel The base type model for this mapped model ''' assert isinstance(base, TypeModel), 'Invalid base type model %s' % base assert not isinstance( base, TypeModelMapped ), 'Invalid base type model %s, is already a mapped type' % base TypeModel.__init__(self, clazz, base.container) self.base = base