[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/ftests.py Added a missing commit.

Jim Fulton jim at zope.com
Wed Sep 1 14:30:58 EDT 2004


Log message for revision 27393:
  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/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/ftests.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/ftests.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/ftests.py	2004-09-01 18:18:21 UTC (rev 27392)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/ftests.py	2004-09-01 18:30:57 UTC (rev 27393)
@@ -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