changeset 6366 | 1806148d6ce8 |
parent 6362 | 1b5fc8581437 |
child 6657 | 402bff898024 |
--- a/migration.py Thu Sep 23 23:28:58 2010 +0200 +++ b/migration.py Wed Sep 29 16:16:32 2010 +0200 @@ -129,7 +129,8 @@ return object.__getattribute__(self, name) except AttributeError: cmd = 'cmd_%s' % name - if hasattr(self, cmd): + # search self.__class__ to avoid infinite recursion + if hasattr(self.__class__, cmd): meth = getattr(self, cmd) return lambda *args, **kwargs: self.interact(args, kwargs, meth=meth)