def get_uploader(upload_to, old_filename=None):
 upload = None
 for plugin in plugins.PluginImplementations(plugins.IUploader):
  upload = plugin.get_uploader(upload_to, old_filename)
 if (upload is None):
  upload = Upload(upload_to, old_filename)
 return upload

def get_uploader ( upload_to , old_filename = None ) : upload = None for plugin in plugins . PluginImplementations ( plugins . IUploader ) : upload = plugin . get_uploader ( upload_to , old_filename ) if ( upload is None ) : upload = Upload ( upload_to , old_filename ) return upload
query iuploader plugins and return an uploader instance for general files .