source: products/quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/listMetaTags.py @ 1780

Last change on this file since 1780 was 1780, checked in by mylan, 14 years ago

#139: Fix listMetaTags patching for not installed SEOptimizer

File size: 517 bytes
Line 
1from Products.CMFPlone.PloneTool import PloneTool
2
3originalListMetaTags = PloneTool.listMetaTags
4
5def qsListMetaTags(self, context):
6    """ Custom listMetaTags method
7    """
8    from quintagroup.seoptimizer.browser.interfaces import IPloneSEOLayer
9    if not IPloneSEOLayer.providedBy(self.REQUEST):
10        return originalListMetaTags(self, context)
11   
12    return {}
13
14def qsListMetaTagsOriginal(self, context):
15    """ Returned original method listMetaTags
16    """
17    return originalListMetaTags(self, context)
Note: See TracBrowser for help on using the repository browser.