Esempio n. 1
0
 def _callFUT(self, context):
     # clear cache first
     from zope.component import getSiteManager
     from repoze.lemonade.interfaces import IContentTypeCache
     sm = getSiteManager()
     cache = sm.queryUtility(IContentTypeCache)
     if cache is not None:
         sm.unregisterUtility(cache, IContentTypeCache)
     from karl.utils import get_content_type_name_and_icon as fut
     return fut(context)
Esempio n. 2
0
 def _callFUT(self, context):
     # clear cache first
     from zope.component import getSiteManager
     from repoze.lemonade.interfaces import IContentTypeCache
     sm = getSiteManager()
     cache = sm.queryUtility(IContentTypeCache)
     if cache is not None:
         sm.unregisterUtility(cache, IContentTypeCache)
     from karl.utils import get_content_type_name_and_icon as fut
     return fut(context)
Esempio n. 3
0
 def _callFUT(self, context):
     from karl.utils import get_content_type_name_and_icon as fut
     return fut(context)
Esempio n. 4
0
 def _callFUT(self, context):
     from karl.utils import get_content_type_name_and_icon as fut
     return fut(context)