コード例 #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
コード例 #2
0
ファイル: banner.py プロジェクト: affinitic/cpskin.core
 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
コード例 #3
0
 def can_disable_banner(self):
     context = self._get_real_context()
     return (IBannerActivated.providedBy(context))
コード例 #4
0
ファイル: banner.py プロジェクト: affinitic/cpskin.core
 def can_disable_banner(self):
     context = self._get_real_context()
     return(IBannerActivated.providedBy(context))