Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
 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)