Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Display the form with default values from the given StorageEngine.

If the value dict is not fully populated, populate any missing entries
with the values from the given StorageEngine's
:attr:`_data <mediadrop.lib.storage.StorageEngine._data>` dict.

:param value: A (sparse) dict of values to populate the form with.
:type value: dict
:param engine: An instance of the storage engine implementation.
:type engine: :class:`mediadrop.lib.storage.StorageEngine` subclass

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/storage/remoteurls.py   mediadrop(Download)
        rtmp = value.setdefault('rtmp', {})
        rtmp.setdefault('known_servers', engine._data.get('rtmp_server_uris', ()))
        return StorageForm.display(self, value, engine, **kwargs)
 
    def save_engine_params(self, engine, **kwargs):

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/storage/localfiles.py   mediadrop(Download)
        specifics.setdefault('path', engine._data.get('path', None))
        specifics.setdefault('rtmp_server_uri', engine._data.get('rtmp_server_uri', None))
        return StorageForm.display(self, value, engine, **kwargs)
 
    def save_engine_params(self, engine, **kwargs):

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/storage/ftp.py   mediadrop(Download)
        ftp.setdefault('http_download_uri', data.get(HTTP_DOWNLOAD_URI, None))
        ftp.setdefault('rtmp_server_uri', data.get(RTMP_SERVER_URI, None))
        return StorageForm.display(self, value, engine, **kwargs)
 
    def save_engine_params(self, engine, **kwargs):