Example #1
0
def contextThumbs(context, event):
    if not ILoveThumbsDontYou.providedBy(context):
        alsoProvides(context, ILoveThumbsDontYou)
        rate.setupAnnotations(context)
        rate.hateIt(context)
        context.reindexObject()
Example #2
0
 def __init__(self, context, request):
     super(TotalLikeWidgetView, self).__init__(context, request)
     if not ILoveThumbsDontYou.providedBy(self.context):
         alsoProvides(self.context, ILoveThumbsDontYou)
         self.context.reindexObject()