Esempio n. 1
0
 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
Esempio n. 2
0
    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
Esempio n. 3
0
    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