[CMF-checkins] CVS: CMF - Topic.py:1.21

tseaver@digicool.com tseaver@digicool.com
Mon, 11 Jun 2001 07:33:08 -0400 (EDT)


Update of /cvs-repository/CMF/CMFTopic
In directory korak.digicool.com:/tmp/cvs-serv28089

Modified Files:
	Topic.py 
Log Message:
 - Fix unqualified 'getToolByName'.


--- Updated File Topic.py in package CMF --
--- Topic.py	2001/06/07 00:23:45	1.20
+++ Topic.py	2001/06/11 11:33:07	1.21
@@ -164,7 +164,7 @@
         '''
         Invokes the action identified by the id "view" or the first action.
         '''
-        tool = getToolByName( self, 'portal_types' )
+        tool = utils.getToolByName( self, 'portal_types' )
         ti = tool.getTypeInfo( self )
         if ti is not None:
             path = ti.getActionById('view', None)
@@ -297,7 +297,7 @@
     security.declareProtected(TopicPermissions.AddTopics, 'addSubtopic')
     def addSubtopic(self, id):
         """ Add a new subtopic """
-        tool = getToolByName( self, 'portal_types' )
+        tool = utils.getToolByName( self, 'portal_types' )
         topictype = tool.getTypeInfo(self)
         topictype.constructInstance(self, id)