[PATCH] Fix deprecation warning due to 'BrowserView' importing
- From: "Baiju M" <baiju m mail gmail com>
- To: gnome-web-list gnome org
- Subject: [PATCH] Fix deprecation warning due to 'BrowserView' importing
- Date: Thu, 13 Dec 2007 15:08:22 +0530
Hi all,
I have attached a patch for fixing deprecation warning due to
'BrowserView' importing. Please review it.
Regards,
Baiju M
Index: ChangeLog
===================================================================
--- ChangeLog (revision 22)
+++ ChangeLog (working copy)
@@ -1,5 +1,14 @@
2007-12-12 Murray Cumming <murrayc murrayc com>
+ * gnome.theme/gnome/theme/browser/navigation.py:
+ * gnome.theme/gnome/theme/browser/pscnavigation.py:
+
+ Fix deprecation warning due to 'BrowserView' importing.
+ Import 'BrowserView' from 'Products.Five.BrowserView'
+ instead of 'Products.CMFPlone.utils.BrowserView'
+
+2007-12-12 Murray Cumming <murrayc murrayc com>
+
* README: Mention python2.4-dev and python-pyorbit dependencies
on Ubuntu.
Index: gnome.theme/gnome/theme/browser/navigation.py
===================================================================
--- gnome.theme/gnome/theme/browser/navigation.py (revision 22)
+++ gnome.theme/gnome/theme/browser/navigation.py (working copy)
@@ -4,6 +4,7 @@
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import utils
+from Products.Five import BrowserView
from Products.CMFPlone import PloneMessageFactory as PMF
from Products.CMFPlone.browser.navtree import getNavigationRoot
from Products.CMFPlone.browser.navigation import get_view_url
@@ -13,7 +14,7 @@
# See Products/gnometheme/overrides.zcml: This is an override of
# Products.CMFPlone.browser.navigation.CatalogNavigationTabs
-class CatalogNavigationTabs(utils.BrowserView):
+class CatalogNavigationTabs(BrowserView):
implements(INavigationTabs)
def topLevelTabs(self, actions=None, category='portal_tabs'):
@@ -96,7 +97,7 @@
# This view is a copy/rewrite of
# Products.CMFPlone.browser.navigation.CatalogNavigationTabs
-class CatalogSecondaryNavbar(utils.BrowserView):
+class CatalogSecondaryNavbar(BrowserView):
implements(ISecondaryNavbar)
def secondLevelNavLinks(self, actions=None, category='portal_second_tabs'):
Index: gnome.theme/gnome/theme/browser/pscnavigation.py
===================================================================
--- gnome.theme/gnome/theme/browser/pscnavigation.py (revision 22)
+++ gnome.theme/gnome/theme/browser/pscnavigation.py (working copy)
@@ -2,13 +2,14 @@
from Acquisition import aq_inner, aq_parent, aq_self
from Products.CMFPlone import utils
+from Products.Five import BrowserView
from Products.PloneSoftwareCenter.interfaces import ISoftwareCenterContent
from interfaces import ISecondaryNavbar
# This view is a copy/rewrite of
# Products.CMFPlone.browser.navigation.CatalogNavigationTabs
-class PSCCatalogSecondaryNavbar(utils.BrowserView):
+class PSCCatalogSecondaryNavbar(BrowserView):
implements(ISecondaryNavbar)
def secondLevelNavLinks(self, actions=None, category='portal_second_tabs'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]