Commit 45fa23e5 authored by Ivan Tyagov's avatar Ivan Tyagov

All this is managed by bt5 in 410fcbdb

parent 410fcbdb
......@@ -58,27 +58,6 @@ 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
reference = reference)\n
if km_page.getValidationState()==\'draft\':\n
km_page.publish()\n
\n
# publish default knowledge pad \n
pad = portal.restrictedTraverse("knowledge_pad_module/erp5_km_public_front_pad")\n
if pad.getValidationState()!=\'public\':\n
pad.visible()\n
pad.public()\n
for box in pad.objectValues():\n
box.visible()\n
box.public()\n
\n
# clear cache so UI is regenarated\n
portal.portal_caches.clearAllCache()\n
\n
......
159
\ No newline at end of file
160
\ 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