You are here: Home / Documentation / How To's / How to list or find signup sheet objects

How to list or find signup sheet objects

by nguyen — published Jul 04, 2013 03:40 PM, last modified Aug 16, 2016 10:50 AM

# Script to place in Zope root

print "Starting..."

for itemTuple in context.items():
(item, itemType) = itemTuple
if str(itemType).startswith('<PloneSite at'):
print "Plone site: ", item, ":", itemType
site = getattr(context, item)
for itemTuple2 in site.items():
(item2, itemType2) = itemTuple2
if str(itemType2).startswith('<SignupSheet at'):
print " *** signup sheet:", item2, ":", itemType2, "***"

print "Ended."
return printed

Navigation