コード例 #1
0
ファイル: type.py プロジェクト: adityaathalye/Ally-Py
 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
コード例 #2
0
ファイル: mapper.py プロジェクト: gizm0bill/Ally-Py
    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
コード例 #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