Hi,

I've got a simple page using the basic Cheetah template that produces an
error with WebKit.cgi, but not with OneShot.cgi.

These links are valid right now:
http://www.outputlinks.com/cgi-bin/WebKit.cgi/Quizlet/Test2  => import error
http://www.outputlinks.com/cgi-bin/OneShot.cgi/Quizlet/Test2  => good

It comes at the beginning of the script where I try to import the Cheetah
Template.  (The script is listed below...)  Right now, I have Python 2.1
running out of my own directory (I used "python Monitor.py start") to start
the AppServer; and I have Cheetah installed in /Lib/site-packages/Cheetah
within my local Python installation.

My only guess is that the OneShot adapter is using my python 2.1
installation, while somehow the AppServer is using the 2.0 server that has
no idea about Cheetah.

--Tracy

........../  SCRIPT

templateExt = '''##----------/  macros  /----------

#macro TSR()
<P><A HREF="mailto:[EMAIL PROTECTED]";>Tracy S. Ruggles</A></P>
#end macro

##----------
##----------/  data  /----------

#data
title = "Quizlet Test #2"
#end data

##---------

<P>This is a test.</P>
<P>What is the $title?</P>
<P>#TSR()</P>

'''
from Cheetah.Servlet import TemplateServlet

class Test2(TemplateServlet):
    def __init__(self):
        TemplateServlet.__init__(self, template=templateExt)

........../  END SCRIPT


-- 
Tracy S. Ruggles -- COPI / OutputLinks -- http://www.outputlinks.com
    Email)  [EMAIL PROTECTED]
    Phone)  888/999.copi ext "TR"



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to