def is_silva_content(self, content): """Is the content a Silva content ? You can override this method in a subclass to change this behaviour. """ cls = content['instance'] return (ISilvaObject.implementedBy(cls) or IVersion.implementedBy(cls))
def has_default_metadata(self, content): """Tell if the content should have default metadata set sets. You can override this method in a subclass to change this behaviour. """ cls = content['instance'] return ((ISilvaObject.implementedBy(cls) and not interfaces.IVersionedObject.implementedBy(cls)) or IVersion.implementedBy(cls))