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