|
|
@ -1,4 +1,4 @@ |
|
|
|
#VERSION: 1.42 |
|
|
|
#VERSION: 1.43 |
|
|
|
|
|
|
|
|
|
|
|
# Author: |
|
|
|
# Author: |
|
|
|
# Fabien Devaux <fab AT gnux DOT info> |
|
|
|
# Fabien Devaux <fab AT gnux DOT info> |
|
|
@ -77,7 +77,7 @@ def initialize_engines(): |
|
|
|
# bind class name |
|
|
|
# bind class name |
|
|
|
globals()[engi] = getattr(engine_module, engi) |
|
|
|
globals()[engi] = getattr(engine_module, engi) |
|
|
|
supported_engines.append(engi) |
|
|
|
supported_engines.append(engi) |
|
|
|
except: |
|
|
|
except Exception: |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
return supported_engines |
|
|
|
return supported_engines |
|
|
@ -94,7 +94,7 @@ def engines_to_xml(supported_engines): |
|
|
|
if hasattr(search_engine, "supported_categories"): |
|
|
|
if hasattr(search_engine, "supported_categories"): |
|
|
|
supported_categories = " ".join((key |
|
|
|
supported_categories = " ".join((key |
|
|
|
for key in search_engine.supported_categories.keys() |
|
|
|
for key in search_engine.supported_categories.keys() |
|
|
|
if key is not "all")) |
|
|
|
if key != "all")) |
|
|
|
|
|
|
|
|
|
|
|
yield "".join((tab, "<", short_name, ">\n", |
|
|
|
yield "".join((tab, "<", short_name, ">\n", |
|
|
|
tab, tab, "<name>", search_engine.name, "</name>\n", |
|
|
|
tab, tab, "<name>", search_engine.name, "</name>\n", |
|
|
@ -138,7 +138,7 @@ def run_search(engine_list): |
|
|
|
else: |
|
|
|
else: |
|
|
|
engine.search(what) |
|
|
|
engine.search(what) |
|
|
|
return True |
|
|
|
return True |
|
|
|
except: |
|
|
|
except Exception: |
|
|
|
return False |
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|