Spyce patches for fcgid, fcgi on both Apache and lighttpd

Andy Sy <[email protected]> Sat, 09 Apr 2011 15:06:01 +0800
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
For those encountering the following:

   syntax: please specify a spyce file to process
   Use -h option for help.

issue, the fix is explained at:

   http://www.neotitans.com/resources/python/spyce-tips-and-techniques.html


In a nutshell, change the following line in spyceCGI.py:

   try: path = findScriptFile(environ['PATH_TRANSLATED'])

to

   try: path = findScriptFile(environ['SCRIPT_FILENAME'])


Even unupdated for a couple of years(?), Spyce is *still*
the simplest and easiest way of getting Python server pages
functionality.  Does anyone really know of a better
alternative?

For those having problems with Python 2.6, e.g. "as" and "with"
being used as keywords, the instances of "as" and "with" variables
in the following files need to be changed:

spyce-2.1/spyce.py
spyce-2.1/tags/form.py

then all should be working again.



========================
http://www.neotitans.com
Web and IT Consulting

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev