Edit detail for #730 addPageWiki sets title attribute which isn't returned by Title() method revision 1 of 1

1
Editor: 192.168.1.21
Time: 2004/03/02 10:20:21 GMT+0
Note:

changed:
-
In CMFInit.py:makeWikiPage the title is sets in the
title attribute. But the ZWikiPage.Title() method always
returns self.pageName(). 

It should probably changed to

def Title(self):
   if hasattr(self, 'title' ):
      return self.title
   else:
      return self.pageName()

This way the portal catalog's Title index would contains 
the appropriate value

Submitted by : 192.168.1.21 at: 2004-03-02T10:20:21+00:00 (17 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

In CMFInit?.py:makeWikiPage the title is sets in the title attribute. But the ZWikiPage.Title() method always returns self.pageName().

It should probably changed to

def Title(self):
if hasattr(self, 'title' ):
return self.title
else:
return self.pageName()

This way the portal catalog's Title index would contains the appropriate value