Commit d2ed5010 authored by Ivan Tyagov's avatar Ivan Tyagov

Publish web site so anonymous user may access it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39222 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1538070d
......@@ -58,6 +58,11 @@ portal = context.getPortalObject()\n
# setup DMS settings\n
portal.Zuite_setupDMS()\n
\n
# publish web site so anonymous user may access it\n
km_web_site = portal.web_site_module.km_test_web_site\n
if km_web_site.getValidationState()!=\'published\':\n
km_web_site.publish()\n
\n
# publish the test web page so we can use it in tests for setting default WEb Section page\n
for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n
km_page = portal.portal_catalog.getResultValue(portal_type = \'Web Page\',\n
......@@ -127,6 +132,7 @@ return "Created Successfully."\n
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>km_web_site</string>
<string>_getiter_</string>
<string>reference</string>
<string>km_page</string>
......
117
\ No newline at end of file
118
\ No newline at end of file
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