On Thu, 27 Feb 2014 17:02:16 +0900 (JST) FUJITA Tomonori <[email protected]> wrote:
> On Thu, 27 Feb 2014 14:45:39 +0900 > FUJITA Tomonori <[email protected]> wrote: > >> fix the following bug: >> >> http://sourceforge.net/p/ryu/mailman/message/32022286/ >> >> Dependent services are not loaded properly with '_CONTEXTS'. >> >> Signed-off-by: FUJITA Tomonori <[email protected]> >> --- >> ryu/base/app_manager.py | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py >> index e65a6f3..286ff1c 100644 >> --- a/ryu/base/app_manager.py >> +++ b/ryu/base/app_manager.py >> @@ -287,8 +287,8 @@ class AppManager(object): >> >> services = [] >> for key, context_cls in cls.context_iteritems(): >> - cls = self.contexts_cls.setdefault(key, context_cls) >> - assert cls == context_cls >> + v = self.contexts_cls.setdefault(key, context_cls) >> + assert v == context_cls >> >> if issubclass(context_cls, RyuApp): >> services.extend(get_dependent_services(context_cls)) >> -- > > Oops, found a bug. Here's an updated version. Applied this. ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
