24 from rapp_utilities
import RappUtilities
25 from rapp_exceptions
import RappError
46 RappUtilities.rapp_print(
'No search engine provided. Falling ' +
47 'back to default (Google News)',
49 engine =
'event_registry'
51 if engine ==
'google':
52 RappUtilities.rapp_print(
'Creating Google News engine',
'DEBUG')
54 elif engine ==
'event_registry':
55 RappUtilities.rapp_print(
'Creating Envents Registry engine',
59 RappUtilities.rapp_print(
'Wrong news engine provided',
'ERROR')
60 raise RappError(
'Wrong news engine provided')
def select_news_engine
Select proper news engine according to request.
Google news engine hndler.
EventRegistry news engine hndler.
Creates and returns the class of the news engine requested.