def clear(self): """ Clear the markage """ if not IOpengraphable.providedBy(self.context): return noLongerProvides(self.context, IOpengraphable) self.context.reindexObject(idxs=['object_provides'])
def add(self): """ Add the markage """ if IOpengraphable.providedBy(self.context): return alsoProvides(self.context, IOpengraphable) self.context.reindexObject(idxs=['object_provides'])