give this a try:

  if item.meta_type == 'Script (Python)':
     print(item.document_src())

-Flip

On 05/13/2015 07:36 AM, Rich Harley wrote:
When iterating over dtml objects, the contents of those scripts can be returned:

e.g.

for item in context.objectValues():
  if item.meta_type=='DTML Method’:
      print item


But when iterating over Python Scripts, only:

<PythonScript at handleday>

is returned. How can I access the actual contents of the Python Script?

Thanks
Rich
_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
  https://mail.zope.org/mailman/listinfo/zope-announce
  https://mail.zope.org/mailman/listinfo/zope-dev )


--
Mike McFadden
Radio Free Asia
Technical Operations Division
2025 M Street NW
Washington DC 20036 USA

This e-mail message is intended only for the use of the addressee and may 
contain information that is privileged and confidential.  Any unauthorized 
dissemination, distribution or copying is strictly prohibited.  If you receive 
this transmission in error, please contact netw...@rfa.org.


_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to