Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
removing lines of code that had already been commented out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Frasca committed Jan 2, 2015
1 parent e9b202c commit 622c0af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
23 changes: 0 additions & 23 deletions bauble/pluginmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,6 @@ def install(plugins_to_install, import_defaults=True, force=False):
'can happend if two plugins directly or '
'indirectly rely on each other'))

# msg = _('The %(plugin)s plugin depends on the %(other_plugin)s '\
# 'plugin but the %(other_plugin)s plugin wasn\'t found.') \
# % {'plugin': e.plugin.__name__, 'other_plugin': e.not_found}
# utils.message_dialog(msg, gtk.MESSAGE_WARNING)

# to_install = topological_sort(to_install, depends)
# except DependencyError, e:
# msg = _('The %(plugin)s plugin depends on the %(other_plugin)s '\
# 'plugin but the %(other_plugin)s plugin wasn\'t found.') \
# % {'plugin': e.plugin.__name__, 'other_plugin': e.not_found}
# utils.message_dialog(msg, gtk.MESSAGE_WARNING)
# raise
# except DependencyError, e:
# error(utils.utf8(e))

try:
for p in to_install:
#debug('install: %s' % p.__name__)
Expand All @@ -304,17 +289,9 @@ def install(plugins_to_install, import_defaults=True, force=False):
# (if ever)
if not PluginRegistry.exists(p):
PluginRegistry.add(p)
#session.commit()
except Exception, e:
warning('bauble.pluginmgr.install(): %s' % utils.utf8(e))
raise
# msg = _('Error installing plugins: %s' % p)
# debug(e)
# #safe = utils.xml_safe_utf8
# #utils.message_details_dialog(safe(msg),
# # safe(traceback.format_exc()),
# # gtk.MESSAGE_ERROR)
# debug(traceback.format_exc())


class PluginRegistry(db.Base):
Expand Down
7 changes: 4 additions & 3 deletions bauble/plugins/imex/csv_.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ def __init__(self):
self.__error_exc = False

def start(self, filenames=None, metadata=None, force=False):
'''
start the import process, this is a non blocking method queue the
process as a bauble task
'''start the import process. this is a non blocking method: we queue the
process as a bauble task. there is no callback informing whether it
is successfully completed or not.
'''
if metadata is None:
metadata = db.metadata # use the default metadata
Expand Down
2 changes: 1 addition & 1 deletion bauble/plugins/plants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def install(cls, import_defaults=True):
filenames = [os.path.join(path, f) for f in 'family.txt',
'genus.txt', 'genus_synonym.txt', 'geography.txt',
'habit.txt']
#filenames = [os.path.join(path, 'genus_synonym.txt')]

from bauble.plugins.imex.csv_ import CSVImporter
csv = CSVImporter()
import_error = False
Expand Down

0 comments on commit 622c0af

Please sign in to comment.