Code

Changes between Version 5 and Version 6 of PsycoMiddleware


Ignore:
Timestamp:
03/01/07 09:57:17 (7 years ago)
Author:
Mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PsycoMiddleware

    v5 v6  
    6363        return None 
    6464}}} 
     65 
     66Or even 
     67{{{ 
     68#!python 
     69from platform import architecture 
     70 
     71if architecture()[0] != '32bit': 
     72    raise Exception("Don't use this on non-32-bit platforms") 
     73 
     74import psyco 
     75psyco.profile() 
     76 
     77class PsycoMiddleware(object): 
     78    def process_request(self, request): 
     79        return None 
     80}}}