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 repoze.urchin

How to install repoze.urchin

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install repoze.urchin
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
0.1 Available View build log
Windows (64-bit)
0.2 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
0.1 Available View build log
Linux (32-bit)
0.2 Available View build log
0.1 Available View build log
Linux (64-bit)
0.2 Available View build log
0.1 Available View build log
 
License
BSD-derived (http://www.repoze.org/LICENSE.txt)
Dependencies
Imports
Lastest release
version 0.2 on Oct 11th, 2011

repoze.urchin README

This package provides WSGI middleware for injecting the markup required to use Google Analytics into web pages.

Please see docs/index.rst for detailed documentation.

repoze.urchin Changelog

0.2 (2011-10-10)
  • Replaced urchin javascript with new async tracking code. See:

    http://www.google.com/support/googleanalytics/bin/answer.py?answer=174090

    Note that the script is now inserted at the end of the <head> tag.

  • Added bypass for HEAD requests. This is a workaround for an assertion in webob.Response that doesn't let you set the body on a response if the request method is 'HEAD'. This behavior on the part of webob is actually bogus, as outlined here:

    http://blog.dscpl.com.au/2009/10/wsgi-issues-with-http-head-requests.html

    The key issue here is that as long as anything in the WSGI stack tries to special case 'HEAD' requests, we can end up with responses with headers which differ depending on whether the request method is 'GET' or 'HEAD'. In this specific example, by bypassing the urchin processing in the event of a HEAD request, we wind up with a Content-Length header for HEAD that doesn't include the extra bytes for the inserted urchin code that we would get with a GET request. This is, by definition of the standards, wrong, and yet unavoidable as long as webob is in our stack.

    For now, we can hold our noses and know that probably nothing's going to really break because of this discrepency, but we can maybe try to convince the webob crowd to drop conditional processing for HEAD requests.

0.1 (2009-06-02)
  • Initial release.

Subscribe to package updates

Last updated Oct 11th, 2011

Download Stats

Last month:2

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.