Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 6 and Version 7 of ModPythonIntegration


Ignore:
Timestamp:
11/10/05 16:47:17 (9 years ago)
Author:
Jamie Turner <jamwt@…>
Comment:

Some mpcp-related clarifications and updates

Legend:

Unmodified
Added
Removed
Modified
  • ModPythonIntegration

    v6 v7  
    22Thanks to Jamie's wonderful mpcp script, this could not have been easier. As always, this is what worked for me. YMMV. And $TG_MP = [your turbogears project directory].  
    33 
    4 Go grab the mpcp.py from http://www.jamwt.com/ and put it into $TG_MP. Ideally, you could just grab it from easy_install, but I had a problem getting the mpcp to be seen in mod_python's $PYTHONPATH so that was my 
    5 workaround.   
    6  
    7 Update: 'easy_install -Z mpcp' should work; make sure to include the '-Z'. 
     4Go grab the mpcp.py from http://www.jamwt.com/ and put it into $TG_MP. Or, if you use setuptools/easy_install, you can do 'easy_install -Z mpcp'; make sure to include the '-Z'. 
    85 
    96Put an .htaccess file in $TG_MP with the following: 
     
    2118 
    22191) move cherrypy.server.start() so it only starts if __name__ == 
    23 "__main__". This might be unnecessary, but I really enjoy typing, so 
    24 whatever. 
     20"__main__".  
     21 
    2522{{{ 
    2623#!python 
     
    3633This method is supposed to have cherrypy production config stuff, but our prod.cfg file handles that, so make it a no-op. The better solution would be to remove the line in mpcp that looks for cherrysetup, but that's something I'll worry about when a push to production is near. 
    3734 
    38 Note: Previously, there were some instructions on how to get mpcp.py working with the new thread handling in CherryPy. Jamie seems to have updated mpcp to work with the new setup, so the instructions have been removed. I recommend getting the newest version to work with, instead of hacking up your local copy. 
     35Note: Previously, there were some instructions on how to get mpcp.py working with the new thread handling in CherryPy. Jamie seems to have updated mpcp to work with the new setup, so the instructions have been removed. I recommend getting the newest version to work with (version 1.2), instead of hacking up your local copy. 
    3936 
    4037Good luck!