RequestCommand


Attributes

a ARG_OPTIONS

['-n', '--app-name', '--config-var', '--header']

a OTHER_OPTIONS

['--display-headers']

a default_interactive

0

a default_verbosity

0

a description

"    This command makes an artifical request to a web application that\n    uses a paste.deploy configuration file for the server and\n    application.\n\n    Use 'paster request config.ini /url' to request /url.  Use\n    'paster post config.ini /url < data' to do a POST with the given\n    request body.\n\n    If the URL is relative (doesn't begin with /) it is interpreted as\n    relative to /.command/.  The variable environ['paste.command_request']\n    will be set to True in the request, so your application can distinguish\n    these calls from normal requests.\n\n    Note that you can pass options besides the options listed here; any unknown\n    options will be passed to the application in environ['QUERY_STRING'].\n    "

a group_name

''

a hidden

False

a max_args

None

a max_args_error

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

a min_args

2

a min_args_error

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

a parser

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

a required_args

()

a return_code

0

a summary

'Run a request for the described application'

a takes_config_file

1

a usage

'CONFIG_FILE URL [OPTIONS/ARGUMENTS]'

Methods

f command(self) ...

f __init__(self, name) ...

f parse_args(self, args) ...

See the source for more information.