Package turbogears :: Package command :: Module base :: Class Shell
[hide private]

Class Shell

source code


Convenient version of the Python interactive shell. This shell attempts to locate your configuration file and model module so that it can import everything from your model and make it available in the Python shell namespace.

Instance Methods [hide private]
 
run(self)
Run the shell
source code

Inherited from CommandWithDB: __init__, find_config

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  desc = 'Start a Python prompt with your database available'
  need_project = True

Inherited from CommandWithDB: config

Properties [hide private]

Inherited from object: __class__