web/ldt/core/handlers/modpython.py
author samuel huron <admin@cybunk.com>
Thu, 10 Jun 2010 19:15:21 +0200
changeset 20 f8788d4ddcfd
parent 0 ecdfc63274bf
permissions -rw-r--r--
neuw version with callback

import django.core.handlers.modpython

def handler(req):
    activate_this = req.get_options().get("virtualenv.activate_path")
    execfile(activate_this, dict(__file__=activate_this))    
    return django.core.handlers.modpython.handler(req)