3467: Exporter returns an error, but it exports fine if we try once more during session

svn: r13892
This commit is contained in:
Doug Blank 2009-12-23 11:42:05 +00:00
parent d50a004450
commit eb23cfd76f

View File

@ -311,12 +311,15 @@ class BasePluginManager(object):
continue continue
mod = self.load_plugin(pdata) mod = self.load_plugin(pdata)
if mod: if mod:
options = None
if (pdata.export_options and
hasattr(mod, pdata.export_options)):
options = getattr(mod, pdata.export_options)
exp = gen.plug.ExportPlugin(name=pdata.name, exp = gen.plug.ExportPlugin(name=pdata.name,
description = pdata.description, description = pdata.description,
export_function = getattr(mod, pdata.export_function), export_function = getattr(mod, pdata.export_function),
extension = pdata.extension, extension = pdata.extension,
config = (pdata.export_options_title, config = (pdata.export_options_title, options))
getattr(mod, pdata.export_options)))
self.__export_plugins.append(exp) self.__export_plugins.append(exp)
return self.__export_plugins return self.__export_plugins