Пример #1
0
 def mark(self):
     if not IBlogContainer.providedBy(self.context):
         interface.directlyProvides(self.context, IBlogContainer)
Пример #2
0
 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)