diff options
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/paster.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/repoze/bfg/paster.py b/repoze/bfg/paster.py index 967d9b72e..452c13fc5 100644 --- a/repoze/bfg/paster.py +++ b/repoze/bfg/paster.py @@ -65,7 +65,6 @@ class BFGShellCommand(Command): """ summary = "Open an interactive shell with a repoze.bfg app loaded" - usage = '\n' + __doc__ min_args = 2 max_args = 2 @@ -82,6 +81,12 @@ class BFGShellCommand(Command): IPShell = IPShell # for testing verbose = 3 + def __init__(self, *arg, **kw): + # needs to be in constructor to support Jython (used to be at class + # scope as ``usage = '\n' + __doc__``. + self.usage = '\n' + self.__doc__ + Command.__init__(self, *arg, **kw) + def command(self): cprt =('Type "help" for more information. "root" is the BFG app ' 'root object.') |
