def __init__(self, context, request): # Have to set the context to the root. helper = zope.component.queryAdapter(context, IExposureSourceAdapter) exposure, workspace, path = helper.source() context = exposure WorkflowSubMenuItem.__init__(self, context, request)