Exemplo n.º 1
0
 def banner_root(self):
     context = self._get_real_context()
     portal = api.portal.get()
     obj = context
     while obj != portal:
         if IBannerActivated.providedBy(obj):
             return obj
         obj = aq_parent(obj)
     if IBannerActivated.providedBy(obj):
         return obj
     return None
Exemplo n.º 2
0
 def banner_root(self):
     context = self._get_real_context()
     portal = api.portal.get()
     obj = context
     while obj != portal:
         if IBannerActivated.providedBy(obj):
             return obj
         obj = aq_parent(obj)
     if IBannerActivated.providedBy(obj):
         return obj
     return None
Exemplo n.º 3
0
 def can_disable_banner(self):
     context = self._get_real_context()
     return (IBannerActivated.providedBy(context))
Exemplo n.º 4
0
 def can_disable_banner(self):
     context = self._get_real_context()
     return(IBannerActivated.providedBy(context))