Skip to content

Commit

Permalink
close #301. changing as suggested.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrasca committed Jan 2, 2018
1 parent 549338d commit 30a43e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions bauble/plugins/plants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,6 @@ def init(cls):
bauble.gui.add_to_insert_menu(GenusEditor, _('Genus'))
bauble.gui.add_to_insert_menu(SpeciesEditorMenuItem, _('Species'))

if sys.platform == 'win32':
# TODO: for some reason using the cross as the hybrid
# character doesn't work on windows
Species.hybrid_char = 'x'

# suggest some useful defaults for stored queries
import bauble.meta as meta
session = db.Session()
Expand Down
7 changes: 0 additions & 7 deletions bauble/plugins/plants/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@

from bauble.plugins.plants.species_model import _remove_zws as remove_zws

if sys.platform == 'win32':
# on windows the hybrid char is set to 'x'in PlantPlugin.init but
# these strings are initialized before init is called so we set it
# here...this sort of breaks the string tests since we aren't
# relying on the behavior of PlantPlugin.init but what can we do?
Species.hybrid_char = 'x'


family_test_data = (
{'id': 1, 'family': u'Orchidaceae'},
Expand Down

0 comments on commit 30a43e0

Please sign in to comment.