Logo Search packages:      
Sourcecode: zope-atseng version File versions  Download package

def ATSchemaEditorNG::ParentManagedSchema::AcquisitionManagedSchema::lookup_provider (   self  ) 

return schema provider instance 

Definition at line 180 of file ParentManagedSchema.py.

00180                              :
        """ return schema provider instance """
        app = self.getPhysicalRoot()
        
        def get_aq_provider(obj):
            parent = obj.aq_parent
            if parent is app:
                raise SchemaEditorError(self.translate('atse_no_provider',
                                                       default="No Schema provider found"))
            if ISchemaEditor.isImplementedBy(parent):
                return parent
            else:
                return get_aq_provider(parent)

        return get_aq_provider(self)

InitializeClass(AcquisitionManagedSchema)
    

class ToolManagedSchema(ManagedSchemaBase):


Generated by  Doxygen 1.6.0   Back to index