Re: [Zope] Iterating over objects in ZODB

2015-05-21 Thread Michael McFadden
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

[Zope] Iterating over objects in ZODB

2015-05-13 Thread Rich Harley
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

Re: [Zope] Iterating over objects in ZODB

2015-05-13 Thread Niels Dettenbach
Am Mittwoch, 13. Mai 2015, 11:36:03 schrieb Rich Harley: is returned. How can I access the actual contents of the Python Script? The python script object seems a bit more complex then a DTML-Method object - means you have to access the script content of the python script object directly (not

Re: [Zope] Iterating over objects in ZODB

2015-05-13 Thread Fernando
obj.body() On 13 May 2015, Niels Dettenbach n...@syndicat.com wrote: Am Mittwoch, 13. Mai 2015, 11:36:03 schrieb Rich Harley: is returned. How can I access the actual contents of the Python Script? The python script object seems a bit more complex then a DTML-Method object - means you