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

Commit

Permalink
restore functionality - closes #246.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrasca committed Dec 31, 2015
1 parent 4b33ffe commit a01ceb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bauble/plugins/garden/accession.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def generic_taxon_add_action(model, view, presenter, top_presenter,
"""

from bauble.plugins.plants.species import edit_species
if edit_species(parent=view.get_window()):
if edit_species(parent_view=view.get_window()):
logger.debug('new taxon added from within VerificationBox')
# add the new taxon to the session and start using it
presenter.session.add(editor.model)
Expand Down
2 changes: 1 addition & 1 deletion bauble/plugins/plants/genus.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def handle_response(self, response):
more_committed = e.start()
elif response == self.RESPONSE_OK_AND_ADD:
sp = Species(genus=self.model)
more_committed = edit_species(model=sp, parent=self.parent)
more_committed = edit_species(model=sp, parent_view=self.parent)

if more_committed is not None:
if isinstance(more_committed, list):
Expand Down

0 comments on commit a01ceb2

Please sign in to comment.