def __init__(self, generic_dao: GenericDAO):
        """
        Create new Files accessor for MongoDB.

        :param generic_dao: A configured generic MongoDB data access object
         pointing to an appropriate database.
        """
        self.generic_dao = generic_dao

        self._fs = gridfs.GridFS(self.generic_dao._database)
def __init__ ( self , generic_dao : GenericDAO ) : self . generic_dao = generic_dao self . _fs = gridfs . GridFS ( self . generic_dao . _database )
Create new Files accessor for MongoDB.

        :param generic_dao: A configured generic MongoDB data access object
         pointing to an appropriate database.