コード例 #1
0
    def __init__(self, premodel_data):
        '''

        This constructor inherits additional class properties, from the
        constructor of the 'BaseData' superclass.

        '''

        # superclass constructor
        BaseData.__init__(self, premodel_data)
コード例 #2
0
    def __init__(self, premodel_data, uid):
        '''

        This constructor inherits additional class properties, from the
        constructor of the 'BaseData' superclass.

        '''

        # superclass constructor
        BaseData.__init__(self, premodel_data, uid)
コード例 #3
0
    def __init__(self, premodel_data):
        '''

        This constructor inherits additional class properties, from the
        constructor of the 'BaseData' superclass.

        '''

        # superclass constructor
        BaseData.__init__(self, premodel_data)

        # class variable
        if session.get('uid'):
            self.max_document = current_app.config.get('MAXDOC_AUTH')
        else:
            self.max_document = current_app.config.get('MAXDOC_ANON')
コード例 #4
0
    def __init__(self, premodel_data, uid):
        '''

        This constructor inherits additional class properties, from the
        constructor of the 'BaseData' superclass.

        '''

        # superclass constructor
        BaseData.__init__(self, premodel_data, uid)

        # class variable
        if session.get('uid'):
            self.max_document = current_app.config.get('MAXDOC_AUTH')
        else:
            self.max_document = current_app.config.get('MAXDOC_ANON')