From 0f3d7ec0375f1b11f40dad62367318fae744edb1 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 11 Jun 2008 01:28:12 +0000 Subject: [PATCH] Release a document before trying to retrieve it. Otherwise, it is not guaranteed if a draft document can be obtained, so it is very unstable. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21484 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py index acb43c83f9..12bfe451f1 100644 --- a/product/ERP5/tests/testERP5Web.py +++ b/product/ERP5/tests/testERP5Web.py @@ -337,6 +337,7 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional): document = self.portal.web_page_module.newContent( portal_type = 'Web Page', reference = document_reference) + document.release() website.setAuthorizationForced(0) websection.setAuthorizationForced(0) get_transaction().commit() -- 2.30.9