Last change
on this file since 3224 was
3134,
checked in by zidane, 13 years ago
|
fixes pep8
|
File size:
514 bytes
|
Line | |
---|
1 | from Products.CMFPlone.PloneTool import PloneTool |
---|
2 | |
---|
3 | originalListMetaTags = PloneTool.listMetaTags |
---|
4 | |
---|
5 | |
---|
6 | def qsListMetaTags(self, context): |
---|
7 | """ Custom listMetaTags method |
---|
8 | """ |
---|
9 | from quintagroup.seoptimizer.browser.interfaces import IPloneSEOLayer |
---|
10 | if not IPloneSEOLayer.providedBy(self.REQUEST): |
---|
11 | return originalListMetaTags(self, context) |
---|
12 | return {} |
---|
13 | |
---|
14 | |
---|
15 | def qsListMetaTagsOriginal(self, context): |
---|
16 | """ Returned original method listMetaTags |
---|
17 | """ |
---|
18 | return originalListMetaTags(self, context) |
---|
Note: See
TracBrowser
for help on using the repository browser.