#29 gfplus.py missing completekey and cmdqueue

closed-fixed
nobody
None
5
2009-12-06
2004-05-16
Bryon Gill
No

I'm running Fedora Core 1 with Python 2.2.3 and
gadfly-1.0.0. When I tried to start gfplus.py, it
asked for a database name and location, then bombed
complaining that it GadflyShell was missing
completekey. I fixed this and it complained that it
was missing cmdqueue.

I got it to work by adding the following lines to the
__init__ function of GadflyShell:
self.completekey=None
self.cmdqueue=[]

Discussion

  • Cliff Wells

    Cliff Wells - 2004-05-25

    Logged In: YES
    user_id=340357

    The real solution is to have the GadflyShell class call the
    cmd.Cmd constructor:

    class GadflyShell(cmd.Cmd):
    prompt = 'GF> '
    prompt2 = '... '

    def __init__(self):
    cmd.Cmd.__init__(self)
    print '\ngfplus %s -- Interactive gadfly shell
    %s\n' %(__version__, rl)
    ...

    The constructor sets up these two attributes.

     
  • Richard Jones

    Richard Jones - 2009-12-06
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks