Package lemon :: Package external :: Package gadfly :: Package scripts :: Module gfplus :: Class GadflyShell
[show private | hide private]
[frames | no frames]

Class GadflyShell

Cmd --+
      |
     GadflyShell


Method Summary
  __init__(self)
  default(self, arg)
Run the command to Gadfly...
  do_change(self, arg)
Repeat the last command, but change it according to the re arg:...
  do_commit(self, arg)
commit database...
  do_desc(self, table)
List columns for table named in table...
  do_EOF(self, arg)
  do_exit(self, arg)
exit gfplus, commiting changes...
  do_help(self, arg)
display help screen...
  do_rollback(self, arg)
rollback to last commit...
  do_use(self, dbase)
Switch active databases.
  emptyline(self)
Called when an empty line is entered in response to the prompt.
  postcmd(self, stop, line)
I need to have the last command altered _after_ the current...
  precmd(self, line)
Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.
    Inherited from Cmd
  cmdloop(self, intro)
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
  columnize(self, list, displaywidth)
Display a list of strings as a compact set of columns.
  complete(self, text, state)
Return the next possible completion for 'text'.
  complete_help(self, *args)
  completedefault(self, *ignored)
Method called to complete an input line when no command-specific complete_*() method is available.
  completenames(self, text, *ignored)
  get_names(self)
  onecmd(self, line)
Interpret the argument as though it had been typed in response to the prompt.
  parseline(self, line)
  postloop(self)
Hook method executed once when the cmdloop() method is about to return.
  preloop(self)
Hook method executed once when the cmdloop() method is called.
  print_topics(self, header, cmds, cmdlen, maxcol)

Class Variable Summary
str prompt = 'GF> '
str prompt2 = '... '
    Inherited from Cmd
str doc_header = 'Documented commands (type help <topic>):'
str doc_leader = ''
str identchars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP...
NoneType intro = None                                                                  
str lastcmd = ''
str misc_header = 'Miscellaneous help topics:'
str nohelp = '*** No help on %s'
str ruler = '='
str undoc_header = 'Undocumented commands:'
int use_rawinput = 1                                                                     

Method Details

default(self, arg)

Run the command to Gadfly
Overrides:
cmd.Cmd.default

do_change(self, arg)

Repeat the last command, but change it according to the re arg:
s/pattern/replace
c/pattern/replace

do_commit(self, arg)

commit database

do_desc(self, table)

List columns for table named in table

do_exit(self, arg)

exit gfplus, commiting changes

do_help(self, arg)

display help screen
Overrides:
cmd.Cmd.do_help

do_rollback(self, arg)

rollback to last commit

do_use(self, dbase)

Switch active databases.
dbase becomes the new name, and prompts the user for the location.
Commits changes to original DB.

emptyline(self)

Called when an empty line is entered in response to the prompt.

If this method is not overridden, it repeats the last nonempty
command entered.
Overrides:
cmd.Cmd.emptyline (inherited documentation)

postcmd(self, stop, line)

I need to have the last command altered _after_ the current
command is run
Overrides:
cmd.Cmd.postcmd

precmd(self, line)

Hook method executed just before the command line is
interpreted, but after the input prompt is generated and issued.
Overrides:
cmd.Cmd.precmd (inherited documentation)

Class Variable Details

prompt

Type:
str
Value:
'GF> '                                                                 

prompt2

Type:
str
Value:
'... '                                                                 

Generated by Epydoc 2.0 on Mon Nov 10 15:08:18 2003 http://epydoc.sf.net