[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/onlinehelp/browser/ftests.py Merged from Zope X3-3.0 branch:

Jim Fulton jim at zope.com
Thu Sep 2 04:17:38 EDT 2004


Log message for revision 27415:
  Merged from Zope X3-3.0 branch:
  
    r27393 | jim | 2004-09-01 14:30:57 -0400 (Wed, 01 Sep 2004) | 8 lines
  
  Added a missing commit.
  
  Nobdy seems to realize that if you modify things with python code, you
  need to commit the change before calling publish.
  
  I think I probably need to make publish to a commit (and sync the
  python connection after publishing) automatically.
  


Changed:
  U   Zope3/trunk/src/zope/app/onlinehelp/browser/ftests.py


-=-
Modified: Zope3/trunk/src/zope/app/onlinehelp/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/onlinehelp/browser/ftests.py	2004-09-02 08:15:14 UTC (rev 27414)
+++ Zope3/trunk/src/zope/app/onlinehelp/browser/ftests.py	2004-09-02 08:17:38 UTC (rev 27415)
@@ -16,6 +16,7 @@
 $Id$
 """
 import os
+import transaction
 import unittest
 
 from zope.app.folder.interfaces import IRootFolder
@@ -37,6 +38,7 @@
              'contents.html')
         root = self.getRootFolder()
         root['file']=File()
+        transaction.commit()
 
         response = self.publish(
             '/contents.html',



More information about the Zope3-Checkins mailing list