[EMAIL PROTECTED] wrote:
> Hi.
> 
> Currently, and correct me if I'm wrong, in a single PSP page you can
> have one "psp method", i.e. an inverse servlet method which is HTML
> with embedded code markup, and 0 or more normal methods (the ones
> created with <psp:method>).  Is there any reason PSP shouldn't be
> extended to allow multiple "psp methods"?  For example, something
> like this: 

This would be a nice addition to PSP if you are up to it.  I've wanted to do
this before.

There is a workaround that may be useful depending on what you are doing --
you can define nested functions using regular Python syntax and put PSP into
the function.  They aren't methods unfortunately, so you can't call them
from your base class.  Here's an example:

<%def my_nested_function(i):%>
<p>The number is <%=i%>.
<%end%>

<%for i in range(10):%>
<%my_nested_function(i)%>
<%end%>


- Geoff



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to