Commit bf7c252a authored by Ivan Tyagov's avatar Ivan Tyagov

Use DMS settings script and clean up KM's own.

Set bt5 dependencies.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38574 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c0bab27
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -74,19 +71,6 @@ ...@@ -74,19 +71,6 @@
\n \n
<tal:block metal:define-macro="deleteKMWebSite">\n <tal:block metal:define-macro="deleteKMWebSite">\n
<!-- delete the web_site XXX: not used anymore as no need to delete site -->\n <!-- delete the web_site XXX: not used anymore as no need to delete site -->\n
<!--\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/WebSiteModule_deleteKMSite?site_id=km_test_web_site</td>\n
<td></td>\n
<td>Delete KM site</td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Deleted Successfully.</td>\n
<td></td>\n
</tr>\n
-->\n
</tal:block>\n </tal:block>\n
\n \n
\n \n
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -53,42 +50,13 @@ ...@@ -53,42 +50,13 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string>"""\n
"""\n
Initialize a KM site.\n Initialize a KM site.\n
"""\n """\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
"""\n
if site_id not in context.objectIds():\n
km_website = context.newContent(id = site_id, \\\n
title = title, \n
portal_type = \'Web Site\')\n
km_website.edit(skin_selection_name = \'KM\',\n
container_layout = \'erp5_km_minimal_layout\',\n
content_layout = \'erp5_km_minimal_content_layout\',\n
custom_render_method_id = \'WebSite_viewKnowledgePad\',\n
layout_configuration_form_id = \'WebSection_viewKMMinimalThemeConfiguration\',\n
static_language_selection = True,\n
visible = True,\n
site_map_section_parent = True,\n
default_available_language = \'en\')\n
"""\n
\n \n
km_preference_id = \'km_site_test\'\n # setup DMS settings\n
portal_preferences = context.portal_preferences\n portal.Zuite_setupDMS()\n
if km_preference_id not in portal_preferences.objectIds():\n
km_preference = portal_preferences.newContent(\n
id = km_preference_id,\n
portal_type = \'System Preference\',\n
priority = 1,\n
preferred_document_reference_regular_expression = \'(?P<reference>[a-zA-Z0-9-_.]+-[a-zA-Z0-9-_.]+)(|-(?P<version>[0-9a-zA-Z.]+))(|-(?P<language>[a-z]{2})[^-]*)?\',\n
preferred_document_file_name_regular_expression = \'(?P<node_reference>[a-zA-Z0-9_-]+)-(?P<local_reference>[a-zA-Z0-9_.]+)-(?P<version>[0-9a-zA-Z.]+)-(?P<language>[a-z]{2})[^-]*?\',\n
preferred_synchronous_metadata_discovery = True,\n
preferred_redirect_to_document = True,\n
preferred_ooodoc_server_address = context.Zuite_getConversionServerDict()["oood_hostname"],\n
preferred_ooodoc_server_port_number = context.Zuite_getConversionServerDict()["oood_port"])\n
km_preference.enable()\n
\n \n
# publish the test web page so we can use it in tests for setting default WEb Section page\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 for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n
...@@ -100,9 +68,7 @@ for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n ...@@ -100,9 +68,7 @@ for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n
portal.portal_caches.clearAllCache()\n portal.portal_caches.clearAllCache()\n
\n \n
return "Created Successfully."\n return "Created Successfully."\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -151,11 +117,6 @@ return "Created Successfully."\n ...@@ -151,11 +117,6 @@ return "Created Successfully."\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>km_preference_id</string>
<string>portal_preferences</string>
<string>True</string>
<string>_getitem_</string>
<string>km_preference</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>reference</string> <string>reference</string>
<string>km_page</string> <string>km_page</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.manage_delObjects([site_id])\n
km_preference_id = \'km_site_test\'\n
portal_preferences = context.portal_preferences\n
if km_preference_id in portal_preferences.objectIds():\n
portal_preferences.manage_delObjects([km_preference_id])\n
return "Deleted Successfully."\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>site_id=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>site_id</string>
<string>_getattr_</string>
<string>context</string>
<string>km_preference_id</string>
<string>portal_preferences</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSiteModule_deleteKMSite</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
Return the configuration for use into\n
preferences.\n
"""\n
return dict(oood_hostname="localhost",\n
oood_port=8008)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>dict</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_getConversionServerDict</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
erp5_ui_test_core erp5_ui_test_core
erp5_dms_ui_test
erp5_km erp5_km
\ No newline at end of file
99 102
\ No newline at end of file \ 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