def configure_handler(): handler = Handler() delegate = HandlerConfigurator.get_optin_delegate() rspec_manager = HandlerConfigurator.get_optin_rspec_manager() cred_manager = HandlerConfigurator.get_optin_credential_manager() exc_manager = HandlerConfigurator.get_optin_exception_manager() handler.set_credential_manager(cred_manager) handler.set_rspec_manager(rspec_manager) handler.set_delegate(delegate) handler.set_geni_exception_manager(exc_manager) handler.set_config(OptinConfig) return handler
def configure_handler(): # XXX How and from which module is this invoked? handler = Handler() delegate = HandlerConfigurator.get_vt_am_delegate() rspec_manager = HandlerConfigurator.get_vt_am_rspec_manager() cred_manager = HandlerConfigurator.get_vt_am_credential_manager() exc_manager = HandlerConfigurator.get_vt_am_exception_manager() handler.set_credential_manager(cred_manager) handler.set_rspec_manager(rspec_manager) handler.set_delegate(delegate) handler.set_geni_exception_manager(exc_manager) handler.set_config(VTAMConfig) return handler