Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install mr.monster

How to install mr.monster

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mr.monster
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.4 Available View build log
Windows (64-bit)
1.4 Available View build log
Mac OS X (10.5+)
1.4 Available View build log
Linux (32-bit)
1.4 Available View build log
Linux (64-bit)
1.4 Available View build log
 
License
BSD
Dependencies
Lastest release
version 1.4 on Jan 5th, 2011

He's fearsome.

About

Mr Monster is a WSGI middleware designed to make it easy to locally test pipelines that will eventually be served behind apache with a rewrite rule in place.

The configuration is very simple, a common case being:

[filter:monster]

System Message: ERROR/3 (<string>, line 16)

Inconsistent literal block quoting.

use = egg:mr.monster#rewrite host = www.example.com port = 80

which simply adds the correct VirtualHostBase/Root declarations.

If no configuration options are supplied the inbound request will be introspected. To avoid this, set an explicit host and port. For users wanting to use autodetection the egg:mr.monster#rewrite line can be added directly to a pipeline.

Options

autodetect:

System Message: WARNING/2 (<string>, line 31)

Field list ends without a blank line; unexpected unindent.

Pick a host and port from the inbound request.

host:

System Message: WARNING/2 (<string>, line 34)

Field list ends without a blank line; unexpected unindent.

Set the canonical hostname to pass to Zope. If used you must provide a port.

port:

System Message: WARNING/2 (<string>, line 37)

Field list ends without a blank line; unexpected unindent.

Set the canonical port. If used you must provide a host.

internalpath:

System Message: WARNING/2 (<string>, line 40)

Field list ends without a blank line; unexpected unindent.

A path in the form /foo/site that is the base of your application in Zope.

externalpath:

System Message: WARNING/2 (<string>, line 43)

Field list ends without a blank line; unexpected unindent.

A path in the form /bar/baz to filter from a request using _vh_bar syntax.

scheme:

System Message: WARNING/2 (<string>, line 46)

Field list ends without a blank line; unexpected unindent.

The URI scheme to use in the virtual host, by default this is detected automatically. Release history ---------------

2010-08-24 (1.4)
  • Add support for overriding URI scheme (Alan Hoey)
  • Make the empty string the canonical representation of SCRIPT_NAME for the reroot middleware

System Message: WARNING/2 (<string>, line 56)

Bullet list ends without a blank line; unexpected unindent.

(Matthew Wilkes)

  • Add a secondary middleware for setting the SCRIPT_NAME

System Message: WARNING/2 (<string>, line 59)

Bullet list ends without a blank line; unexpected unindent.

(Matthew Wilkes)

  • Refactor the assertion endpoint in the tests to be more like a normal WSGI

System Message: WARNING/2 (<string>, line 62)

Bullet list ends without a blank line; unexpected unindent.

app (Matthew Wilkes)

2009-08-30 (1.3)
  • Strip the external path from the passed-in path info, prevents urls like

System Message: WARNING/2 (<string>, line 69)

Bullet list ends without a blank line; unexpected unindent.

/_vh_foo/foo which manifested as fully skinned Plone sites with error messages. That made me sad. Oh yes it did. (Matthew Wilkes)

2009-08-18 (1.2)
  • Fix HTTP/1.1 autodetect in the case that the client sends a host:port for the

System Message: WARNING/2 (<string>, line 77)

Bullet list ends without a blank line; unexpected unindent.

Host header. (Matthew Wilkes)

2009-08-13 (1.1)
  • Make the case where no local config is supplied autodetect, not pass-through

System Message: WARNING/2 (<string>, line 84)

Bullet list ends without a blank line; unexpected unindent.

(Matthew Wilkes)

  • Prefer HTTP_HOST to SERVER_NAME so HTTP/1.1 clients work more reliably.

System Message: WARNING/2 (<string>, line 87)

Bullet list ends without a blank line; unexpected unindent.

(Alan Hoey)

2009-07-24 (1.0)
  • Initial release (Matthew Wilkes)

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.