You sound like you are in a mixed mode. You have to decide where the response will come from. I usually like to let the Webware servlet do its thing and just have the Cheetah template override writeContent.

But a tmpl file is not a python class. It will become a python class when you run Cheetah Compile.
PSP pages can inherit from a servlet and will be generated on the fly by the plug-in. There is a Cheetah plug-in you can install to get the same effect.


I would start with the 'containment' model.
in your
def writeHTML
t = Template(file='/home/Webware/Templates/Welcome.tmpl')
t.pageData = ('user':self.user....)
or
t.pageData = self.__dict__

-Aaron

Tim Roberts wrote:

Can someone give me a 10,000 foot overview of Cheetah and Webware playing nicely together?

I have a pure Webware site that I would like to play with converting to Cheetah. My experiments have not been, umm, entirely successful.

My basic questions, I think, revolve around the inheritance structure. With Webware, I have my own SitePage derive from WebKit.SidebarPage, then I have SecurePage.py derive from that for those pages that need a username, and so on. I should, I think, be able to mix Cheetah tmpl pages, PSP pages, and Python scripts freely in my inheritance structure. Isn't that true? If so, where does Cheetah's base class fit into the picture?

When I played with this, I found that the root level 'render me' function differed between the two, and I couldn't seem to get them resolved sensibly. I'd appreciate any advice.


--
- Tim Roberts, [EMAIL PROTECTED]
 Providenza & Boekelheide, Inc.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



-- -Aaron http://www.MetroNY.com/ "I don't know what's wrong with my television set. I was getting C-Span and the Home Shopping Network on the same station. I actually bought a congressman." - Bruce Baum





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to