예제 #1
0
파일: subscriber.py 프로젝트: PMR2/pmr2.app
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)
예제 #2
0
파일: menu.py 프로젝트: PMR2/pmr2.app
 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)