def can_disable_media(self): context = self._get_real_context() return (IMediaActivated.providedBy(context))
def can_disable_media(self): context = self._get_real_context() return(IMediaActivated.providedBy(context))
def is_enabled(self): # LATER : add caching here context = self._get_real_context() if IMediaActivated.providedBy(context): return True return False