From: Isaku Yamahata <[email protected]> The class used for context might be RyuApp. So methods of RyuApp needs to be called.
Reported-by: YAMADA Hideki <[email protected]> Signed-off-by: Isaku Yamahata <[email protected]> Signed-off-by: YAMAMOTO Takashi <[email protected]> --- ryu/base/app_manager.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index c666f2c..4d902d4 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -180,13 +180,14 @@ class AppManager(object): def create_contexts(self): for key, cls in self.contexts_cls.items(): - context = cls() + if issubclass(cls, RyuApp): + # hack for dpset + context = self._instantiate(None, cls) + else: + context = cls() LOG.info('creating context %s', key) assert not key in self.contexts self.contexts[key] = context - # hack for dpset - if context.__class__.__base__ == RyuApp: - register_app(context) return self.contexts def instantiate_apps(self, *args, **kwargs): -- 1.8.1.5 ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
