Re: [Zope] Iterating over objects in ZODB

2015-05-13 Thread Fernando
obj.body() On 13 May 2015, Niels Dettenbach 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 have to acc

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 sh

[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: is returned. How can I access the actual contents of the Python Script?