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

Last change on this file since 1958 was 1958, checked in by liebster, 14 years ago

Clean-up code http://codereview.corp.quintagroup.com/40241/show

File size: 512 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    return {}
12
13def qsListMetaTagsOriginal(self, context):
14    """ Returned original method listMetaTags
15    """
16    return originalListMetaTags(self, context)
Note: See TracBrowser for help on using the repository browser.