Commit 0f3d7ec0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Release a document before trying to retrieve it. Otherwise, it is not...

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
parent 8a64d00a
...@@ -337,6 +337,7 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -337,6 +337,7 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional):
document = self.portal.web_page_module.newContent( document = self.portal.web_page_module.newContent(
portal_type = 'Web Page', portal_type = 'Web Page',
reference = document_reference) reference = document_reference)
document.release()
website.setAuthorizationForced(0) website.setAuthorizationForced(0)
websection.setAuthorizationForced(0) websection.setAuthorizationForced(0)
get_transaction().commit() get_transaction().commit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment