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