You are not logged in Log in Join
You are here: Home » Members » Ioan's Zope Documents » Zope Python Script Server Pages » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Members/Ioan/psp
Title resource name Zope Python Script Server Pages
Description resource summary Convert on the fly plain text document into python scripts before to view it.<br> <br> Who knows jsp will feel confortable with this product.<br> <br> <font color="red"> This product is NOT <a target="_blank" href="http://spyce.sourceforge.net/">http://spyce.sourceforge.net/</a><br> This product is NOT <a target="_blank" href="http://www.ciobriefings.com/psp/">http://www.ciobriefings.com/psp/</a><br> This product has nothing to do with any other PSP (Python Server Pages) engine.<br> It may work like ASP or JSP or PSP but is just a small test.<br> Personally I wanted to see how is to convert text<br> with html tags into a Zope python script.<br> </font> <br> You write your document with html-text and python code;<br> then the result is a generated python script<br> which will be executed each time you view the document.<br> <br> <h2>Sample script</h2> This sample will list all psp files with title not empty from current folder: <pre> &lt;%=self.standard_html_header(self)%&gt; &lt;h1&gt;Links&lt;/h1&gt; &lt;ul&gt; &lt;% for id,ob in self.objectItems(["Python Server Page"]): title = ob.title if title!="": print "&lt;li&gt;&lt;a href=%s&gt;%s&lt;/a&gt;" % (ob.absolute_url(),title) %&gt; &lt;/ul&gt; &lt;%=self.standard_html_footer(self)%&gt; </pre> <h2>About Code</h2> <b>self=context.REQUEST.PARENTS[0]</b><br> <b>self</b> is the context where the object is executing<br> <br>
Creator resource creator Ioan
Date default date 2004-03-15 23:51:43
Format resource format text/html
Type resource type Software Package
Subject resource keywords Component Developer, Content Object, Developer
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2003-02-13 05:04:52
ModificationDate date resource last modified 2004-03-15 23:51:43
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati