self.show_search_toplevel(options.search, options.output, options.params)
- def show_search_toplevel(self, search, output, params):
- search_present = __import__(search + '.search', globals(), locals(), 'Cli_Presentation')
+ def show_search_toplevel(self, searchtype, output, params):
+ search_module = __import__(searchtype + '.search')
+ toplevel = search_module.search.Control('cli').run()
#==============================================================================
#=== Search selecting =====================================================
def show_search_toplevel(self, btn, searchtype):
print 'Entering <' + searchtype + '> search mode...'
-# search_present = __import__(searchtype + '.search')
-# toplevel = search_present.search.Gtk_Presentation().get_toplevel()
- search_control = __import__(searchtype + '.search')
- toplevel = search_control.search.Control().run()
+ search_module = __import__(searchtype + '.search')
+ toplevel = search_module.search.Control('gtk').run()
try:
self.vbox.remove(self.vbox.get_children()[2])