Iterating over objects in ZODB
Rich Harley <[email protected]> Wed, 13 May 2015 11:36:03 +0000
| Newsgroups | gmane.comp.web.zope.general |
|---|---|
| Message-ID | <[email protected]> |
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 - [email protected]
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 )