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
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
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
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