Skip to content

Instantly share code, notes, and snippets.

@kai2nenobu
Created November 21, 2012 09:18
Show Gist options
  • Save kai2nenobu/4123942 to your computer and use it in GitHub Desktop.
Save kai2nenobu/4123942 to your computer and use it in GitHub Desktop.
percol_toggle_two_finder
def toggle_two_finders(self, finder_class1, finder_class2):
if self.model.finder.__class__ == finder_class1:
self.model.remake_finder(finder_class2)
else:
self.model.remake_finder(finder_class1)
self.model.force_search()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment