예제 #1
0
 def mark(self):
     if not IBlogContainer.providedBy(self.context):
         interface.directlyProvides(self.context, IBlogContainer)
예제 #2
0
파일: is_blog.py 프로젝트: CIRB/cirb.blog
 def __call__(self):
     context = self.context
     if context.portal_type not in ('Plone Site', 'Folder'):
         context = self.context.aq_inner.aq_parent
     return IBlogContainer.providedBy(context)