[CMF-checkins] CVS: CMF - DiscussionItem.py:1.13

shane@digicool.com shane@digicool.com
Thu, 7 Jun 2001 18:20:53 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv16981

Modified Files:
	DiscussionItem.py 
Log Message:
This changes makes the name of the "view" DTMLMethod unambiguous.



--- Updated File DiscussionItem.py in package CMF --
--- DiscussionItem.py	2001/06/01 18:42:04	1.12
+++ DiscussionItem.py	2001/06/07 22:20:52	1.13
@@ -141,6 +141,10 @@
 
     view = HTMLFile('dtml/discussionView',globals())
     index_html = view
+    # Ensure the name of the "view" method isn't ambiguous.
+    view.__name__ = 'view'
+    view._need__name__ = 0
+
     editForm = HTMLFile('dtml/discussionEdit',globals())
 
     # Replies should default to published