From 159207514fadfacb6e1df9713abd2c61c24d7b77 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 5 Aug 2008 22:21:57 +0000 Subject: 52: Got cli working against new framework --- ipalib/plugable.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 8f2cbc27..2c5fd18c 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -92,7 +92,7 @@ class Plugin(object): Returns a valid Python expression that could create this plugin instance given the appropriate environment. """ - return '%s.%s()' % ( + return '%s.%s' % ( self.__class__.__module__, self.__class__.__name__ ) @@ -296,7 +296,8 @@ class Registrar(object): base. """ for base in self.__allowed: - yield (base, self.__d[base.__name__].values()) + sub_d = self.__d[base.__name__] + yield (base, tuple(sub_d[k] for k in sorted(sub_d))) class API(ReadOnly): -- cgit