示例#1
0
文件: optin.py 项目: HalasNet/felix
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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