Update of /cvs-repository/Products/CMFTopic
In directory cvs.zope.org:/tmp/cvs-serv23261/CMFTopic

Modified Files:
      Tag: CMF-1_5-branch
        Topic.py 
Log Message:
- CMFTopic.Topic/CMFCore.PortalContent: Both these classes were using
  the now-deprecated CMFCore.utils._getViewFor method, and strangely
  enough the deprecation warning didn't show. Replaced with the
  new method of getting the view.


=== Products/CMFTopic/Topic.py 1.44 => 1.44.2.1 ===
--- Products/CMFTopic/Topic.py:1.44     Thu Aug 12 11:07:42 2004
+++ Products/CMFTopic/Topic.py  Thu May  5 16:53:32 2005
@@ -113,12 +113,13 @@
 
         """ Invoke the default action.
         """
-        view = _getViewFor( self )
+        view_id = self.getTypeInfo().queryMethodID('view')
+        view_obj = self.unrestrictedTraverse(view_id)
 
-        if getattr( aq_base( view ), 'isDocTemp', 0 ):
-            return view(self, self.REQUEST)
+        if getattr( aq_base( view_obj ), 'isDocTemp', 0 ):
+            return view_obj(self, self.REQUEST)
         else:
-            return view()
+            return view_obj()
 
     index_html = None  # This special value informs ZPublisher to use __call__
 

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to