Line | |
---|
1 | from Products.CMFPlone.PloneTool import PloneTool |
---|
2 | |
---|
3 | originalListMetaTags = PloneTool.listMetaTags |
---|
4 | |
---|
5 | def 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 | |
---|
13 | def qsListMetaTagsOriginal(self, context): |
---|
14 | """ Returned original method listMetaTags |
---|
15 | """ |
---|
16 | return originalListMetaTags(self, context) |
---|
Note: See
TracBrowser
for help on using the repository browser.