I noticed that this patch is not essential. Really required is whether the
context extends RyuApp.

2013/9/9 Satoshi Kobayashi <[email protected]>

> Since __base__ does not exist in old style class, it becomes an error.
> ---
>  ryu/base/app_manager.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
> index c666f2c..2e6336f 100644
> --- a/ryu/base/app_manager.py
> +++ b/ryu/base/app_manager.py
> @@ -185,7 +185,7 @@ class AppManager(object):
>              assert not key in self.contexts
>              self.contexts[key] = context
>              # hack for dpset
> -            if context.__class__.__base__ == RyuApp:
> +            if RyuApp in context.__class__.__bases__:
>                  register_app(context)
>          return self.contexts
>
> --
> 1.7.1
>
>


-- 
Satoshi Kobayashi <[email protected]>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to