[PatchDiscussion] make lastLog more robust, prevent occasional page breakage

[email protected] (zwiki-repo)
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <20080328151045.C3F227804A__3276.19021195478$1206717362$gmane$org@mail.joyful.com>
Sat Mar  8 01:23:03 PST 2008  Simon Michael <[email protected]>
  * make lastLog more robust, prevent occasional page breakage
diff -rN -u old-ZWiki/Editing.py new-ZWiki/Editing.py
--- old-ZWiki/Editing.py	2008-03-28 08:10:44.000000000 -0700
+++ new-ZWiki/Editing.py	2008-03-28 08:10:44.000000000 -0700
@@ -318,7 +318,7 @@
 
     def lastLog(self):
         """Accessor for this page's last edit log message."""
-        return self.last_log
+        return self.last_log or ''
 
     def handleEditText(self,text,REQUEST=None, subjectSuffix='', log=''):
         old = self.read()

--
forwarded from http://zwiki.org/PatchDiscussion#[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.