def recursive_recatalog_content(obj, event): # for exposure state changes. # we are going to be restrictive in what we do. obj.reindexObject() if IExposure.providedBy(obj) or IExposureFolder.providedBy(obj): for id_, subobj in obj.items(): recursive_recatalog_content(subobj, event)
def getMenuItems(self, context, request): # Have to set the context to the root. if (IExposureFile.providedBy(context) or IExposureFolder.providedBy(context)): helper = zope.component.queryAdapter( context, IExposureSourceAdapter) exposure, workspace, path = helper.source() context = exposure return WorkflowMenu.getMenuItems(self, context, request)