[Zope] Simple Question

Andrew Milton akm at theinternet.com.au
Thu Dec 7 15:36:56 EST 2006


+-------[ Nancy Donnelly ]----------------------
| 7170
| ----- Original Message ----
| From: Jonathan <dev101 at magma.ca>
| 
| Here is the page that I need to quote, and this is why I need triple quotes:
| 
| print """
| <html>
| <body>
| 
| <tal:block metal:define-macro="main">
| <tal:content metal:use-macro="here/templates/protect/macros/strong"></
| tal:content>
| <div
|       tal:condition="here/Quotes | nothing"
|       tal:content="structure here/s/getRandomQuote" />
| <table width="100%" border="0" cellspacing="0" cellpadding="0" background=
| "images/header_bg.jpg" class=header>
|  <tr>
|   <td width="76"><img src="images/header_left.jpg" alt="" width="76" height=
| "37"></td>
|   <td align="right"><tal:block metal:define-slot="headline"><span tal:replace=
| "template/title_or_id" /></tal:block></td>
|   <td width="76"><img src="images/header_right.jpg" alt="" width="76" height=
| "37"></td>
|  </tr>
| </table>
| <table width="95%" border="0" cellspacing="0" cellpadding="0" class=main align=
| "center">
| <tr>
|   <td><br>
|    
| <!-- START TEXT SLOT -->
| <tal:block metal:define-slot="text"></tal:block>
| <!-- END TEXT SLOT -->
|          
|   </td>
| </tr>
| <tr>
|   <td>
| 
| <br />&#160;<br/>
| 
| <!-- START FOOTER SLOT -->
| <tal:block metal:define-slot="footer">
|   <span metal:use-macro="here/templates/frame_footer/macros/main"></span>
| </tal:block>
| <!-- END FOOTER SLOT -->
| 
| 
|   </td>
| </tr>
| </table>
| 
| </tal:block>
| 
| </body>
| </html>
| """
| return printed

It's not going to process the TAL or METAL.

Triple quotes are no different to single quotes when it comes to strings.


-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list