def run(self, test=False):
        '''The main entry point for a plugin.'''
        self._request = self._parse_request()
        log.debug('Handling incoming request for %s', self.request.path)
        items = self._dispatch(self.request.path)

        # Close any open storages which will persist them to disk
        if hasattr(self, '_unsynced_storages'):
            for storage in self._unsynced_storages.values():
                log.debug('Saving a %s storage to disk at "%s"',
                          storage.file_format, storage.filename)
                storage.close()

        return items
def run ( self , test = False ) : self . _request = self . _parse_request ( ) log . debug ( 'Handling incoming request for %s' , self . request . path ) items = self . _dispatch ( self . request . path ) if hasattr ( self , '_unsynced_storages' ) : for storage in self . _unsynced_storages . values ( ) : log . debug ( 'Saving a %s storage to disk at "%s"' , storage . file_format , storage . filename ) storage . close ( ) return items
The main entry point for a plugin.