Contact: fumanchu@aminus.org

Log in as guest/misc to create tickets

Changeset 95

Show
Ignore:
Timestamp:
06/19/06 01:53:10
Author:
fumanchu
Message:

Allow cleanup with modpy < 3.1.4.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modpython_gateway.py

    r93 r95  
    184184            def cleaner(data): 
    185185                object() 
    186             apache.register_cleanup(cleaner) 
     186            try: 
     187                # apache.register_cleanup wasn't available until 3.1.4. 
     188                apache.register_cleanup(cleaner) 
     189            except AttributeError: 
     190                req.server.register_cleanup(req, cleaner) 
    187191     
    188192    # Import the wsgi 'application' callable and pass it to Handler.run