obj.body()<br /><br /><p>On 13 May 2015, Niels Dettenbach <nd@syndicat.com> wrote:</p><blockquote type="cite"><div class="oneComWebmail-mail"><div class="oneComWebmail-body">Am Mittwoch, 13. Mai 2015, 11:36:03 schrieb Rich Harley:<br /><blockquote>is returned. How can I access the actual contents of the Python Script?<br /></blockquote>The python script object seems a bit more complex then a DTML-Method object - <br />means you have to access the script content of the python script object <br />directly (not shure if it's "params" and "body" - have to look into Zope help <br />(PythonScript.py) or Zope sources for the exact "field").<br /><br />regarduing the object docs it shoudl work with .read() directly (if it IS a <br />PythonScript object) or "document_src":<br /><br />def read():<br />"""<br /><br />Return the body of the Python Script, with a special comment<br />block prepended.  This block contains meta-data in the form of<br />comment lines as expected by the 'write' method.<br /><br />"""<br />def document_src(REQUEST=None, RESPONSE=None):<br />"""<br /><br />Return the text of the 'read' method, with content type<br />'text/plain' set on the RESPONSE.<br /><br />"""<br /><br /><br />hth a bit and works,<br /><br /><br />Niels.<br />-- <br />---<br />Niels Dettenbach<br />Syndicat IT & Internet<br /><a target="_blank" href="http://www.syndicat.com">http://www.syndicat.com</a><br />PGP: <a target="_blank" href="https://syndicat.com/pub_key.asc">https://syndicat.com/pub_key.asc</a><br />---<br /><br /><br /><br /><br /></div></div><div class="oneComWebmail-mail"><div class="oneComWebmail-body">_______________________________________________<br />Zope maillist  -  Zope@zope.org<br /><a target="_blank" href="https://mail.zope.org/mailman/listinfo/zope">https://mail.zope.org/mailman/listinfo/zope</a><br />**   No cross posts or HTML encoding!  **<br />(Related lists -<br /><a target="_blank" href="https://mail.zope.org/mailman/listinfo/zope-announce">https://mail.zope.org/mailman/listinfo/zope-announce</a><br /><a target="_blank" href="https://mail.zope.org/mailman/listinfo/zope-dev">https://mail.zope.org/mailman/listinfo/zope-dev</a> )<br /></div></div></blockquote>