Latest Version: 0.9.6.2

ShellCommand

Open an interactive shell with the Pylons app loaded

The optional CONFIG_FILE argument specifies the config file to use for the interactive shell. CONFIG_FILE defaults to 'development.ini'.

This allows you to test your mapper, models, and simulate web requests using paste.fixture.

Example:

$ paster shell my-development.ini

Attributes

a description

None

a group_name

'pylons'

a hidden

False

a max_args

1

a max_args_error

'You must provide no more than %(max_args)s arguments'

a min_args

0

a min_args_error

'You must provide at least %(min_args)s arguments'

a parser

<paste.script.bool_optparse.BoolOptionParser instance at 0x241d698>

a summary

'Open an interactive shell with the Pylons app loaded'

a usage

"\nOpen an interactive shell with the Pylons app loaded\n\n    The optional CONFIG_FILE argument specifies the config file to use for\n    the interactive shell. CONFIG_FILE defaults to 'development.ini'.\n\n    This allows you to test your mapper, models, and simulate web requests\n    using ``paste.fixture``.\n\n    Example::\n\n        $ paster shell my-development.ini\n    "

Methods

f __init__(self, name) ...

f command(self) ...

Main command to create a new shell

See the source for more information.

Top