<div dir="ltr">Sorry Andreas but I can&#39;t modify portal_css<br><br><div class="gmail_quote">2008/10/8 Andreas Jung <span dir="ltr">&lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am 08.10.2008 7:17 Uhr, Garito schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
2008/10/8 Tino Wildenhain &lt;<a href="mailto:tino@wildenhain.de" target="_blank">tino@wildenhain.de</a> &lt;mailto:<a href="mailto:tino@wildenhain.de" target="_blank">tino@wildenhain.de</a>&gt;&gt;<div class="Ih2E3d"><br>

<br>
 &nbsp; &nbsp;Garito wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Perhaps is better if I explain you what I&#39;m trying to do<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Imagine a Plone site (I know there are a plone list but this is<br>
 &nbsp; &nbsp; &nbsp; &nbsp;a generic question, sorry if not)<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I configure it in the way if you put a parameter ?print the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;plone point renders as when you push the print button at the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;bottom of the point<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;For example: plone_site_url/front-page?print renders the plone<br>
 &nbsp; &nbsp; &nbsp; &nbsp;front page with the print.css sytle<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Now I want to get the rendered code of this point as string to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;pass it to PDFNode.renderAsPdf (it expect a string with the HTML<br>
 &nbsp; &nbsp; &nbsp; &nbsp;and the name of the generated pdf)<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Did you know how can I get the html code of an url with get<br>
 &nbsp; &nbsp; &nbsp; &nbsp;parameters?<br>
<br>
<br>
 &nbsp; &nbsp;just context[&#39;front-page&#39;](print=True) ?<br>
<br>
<br>
Perhaps but this puts print on options/args/print or options/print in<br>
the page_template scope, isn&#39;t it?<br>
<br>
In my way to solve this I use request/form/print because plone_css use<br>
tal expressions and request is passed to it<br>
</div></blockquote>
<br>
Then fix your code in a way to accept parameters either from request or options. The &#39;|&#39; operator is your friend in TALES.<br>
<br>
<br>
-aj<br><font color="#888888">
<br>
-- <br>
ZOPYX Ltd. &amp; Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany<br>
Web: <a href="http://www.zopyx.com" target="_blank">www.zopyx.com</a> - Email: <a href="mailto:info@zopyx.com" target="_blank">info@zopyx.com</a> - Phone +49 - 7071 - 793376<br>
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535<br>
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK<br>
------------------------------------------------------------------------<br>
E-Publishing, Python, Zope &amp; Plone development, Consulting<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a><br>Zope Smart Manager<br><a href="http://blogs.sistes.net/Garito/670">http://blogs.sistes.net/Garito/670</a><br>

</div>