Edmund Lian wrote:
> The major weakness I see with PSPs is that there doesn't seem 
> to be a way
> to override more than one page method at a time. So, if more than one
> portion of the page needs to be overridden, a local copy of 
> sitepage needs
> to be created. Perhaps I'm wrong here?

You probably already know about this, but you can override as many methods
as you want _with Python code_ using the <psp:method> tag.  That might be
sufficient for your needs.

In other words, if your SitePage has two phases: writePartOne() and
writePartTwo() you can do this (but you don't get to use PSP syntax for
writePartTwo):

<%@ page extends="MyBaseClass" %> 
<%@ page method="writePartOne" %>
<p>Here is some PSP that gets compiled into writePartOne().
<psp:method name="writePartTwo">
self.write('<p>And this Python code gets compiled into writePartTwo()')
</psp:method>

I agree, it would be nice to allow multiple methods to be defined using PSP
syntax.  But I think that's a pretty significant change to the PSP code.  I
might be wrong.

- Geoff

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

Reply via email to