Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Noah Brackenbury
erp5
Commits
be9835f1
Commit
be9835f1
authored
Aug 12, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: remove references to old style of configuring cloudooo
We now use URL only, old address + port way is obsolete.
parent
31a561fc
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1 addition
and
60 deletions
+1
-60
bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.py
...demo/BusinessConfiguration_afterMaxmaDemoConfiguration.py
+0
-4
bt5/erp5_configurator_run_my_doc/TestTemplateItem/portal_components/test.erp5.testRunMyDocConfigurationWorkflow.py
...components/test.erp5.testRunMyDocConfigurationWorkflow.py
+0
-4
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+0
-5
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_setUpConfigurationTest.py
...igurator_standard_ui_test/Zuite_setUpConfigurationTest.py
+0
-6
bt5/erp5_configurator_ung/TestTemplateItem/portal_components/test.erp5.testUNGConfigurationWorkflow.py
...rtal_components/test.erp5.testUNGConfigurationWorkflow.py
+0
-4
bt5/erp5_demo_ung/SkinTemplateItem/portal_skins/erp5_demo_ung/Alarm_configureUng.py
...lateItem/portal_skins/erp5_demo_ung/Alarm_configureUng.py
+0
-2
bt5/erp5_dms_conversion_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_preConvertDocumentList.py
...og/erp5_mysql_innodb/SQLCatalog_preConvertDocumentList.py
+1
-5
bt5/erp5_ingestion/TestTemplateItem/portal_components/test.erp5.testLiveIngestion.py
...lateItem/portal_components/test.erp5.testLiveIngestion.py
+0
-2
bt5/erp5_web_ung_theme/TestTemplateItem/portal_components/test.erp5.testUNG.py
...e/TestTemplateItem/portal_components/test.erp5.testUNG.py
+0
-2
product/ERP5/tests/testBase.py
product/ERP5/tests/testBase.py
+0
-2
product/ERP5/tests/testCRM.py
product/ERP5/tests/testCRM.py
+0
-2
product/ERP5/tests/testERP5WebWithCRM.py
product/ERP5/tests/testERP5WebWithCRM.py
+0
-2
product/ERP5/tests/testERP5WebWithDms.py
product/ERP5/tests/testERP5WebWithDms.py
+0
-2
product/ERP5/tests/testWebCrawler.py
product/ERP5/tests/testWebCrawler.py
+0
-4
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
+0
-2
product/ERP5OOo/tests/TestFormPrintoutMixin.py
product/ERP5OOo/tests/TestFormPrintoutMixin.py
+0
-2
product/ERP5OOo/tests/testDms.py
product/ERP5OOo/tests/testDms.py
+0
-2
product/ERP5OOo/tests/testIngestion.py
product/ERP5OOo/tests/testIngestion.py
+0
-2
product/ERP5OOo/tests/testOOoImport.py
product/ERP5OOo/tests/testOOoImport.py
+0
-2
product/ERP5OOo/tests/testOOoStyle.py
product/ERP5OOo/tests/testOOoStyle.py
+0
-2
product/ERP5SyncML/tests/testERP5DocumentSyncML.py
product/ERP5SyncML/tests/testERP5DocumentSyncML.py
+0
-2
No files found.
bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.py
View file @
be9835f1
...
...
@@ -13,14 +13,10 @@ for document in portal.portal_catalog(portal_type=bt.getTemplatePortalTypeRoleLi
document
.
updateLocalRolesOnSecurityGroups
()
conversion_server_url
=
portal
.
portal_preferences
.
getPreferredDocumentConversionServerUrl
()
conversion_server_hostname
=
portal
.
portal_preferences
.
getPreferredOoodocServerAddress
()
conversion_server_port
=
portal
.
portal_preferences
.
getPreferredOoodocServerPortNumber
()
for
preference_id
in
[
"default_configurator_preference"
,
"default_configurator_system_preference"
]:
preference
=
getattr
(
portal
.
portal_preferences
,
preference_id
)
if
preference
.
getPortalType
()
==
"System Preference"
:
preference
.
setPreferredDocumentConversionServerUrl
(
conversion_server_url
)
preference
.
setPreferredOoodocServerPortNumber
(
conversion_server_port
)
preference
.
setPreferredOoodocServerAddress
(
conversion_server_hostname
)
if
isTransitionPossible
(
preference
,
"enable"
):
preference
.
enable
()
...
...
bt5/erp5_configurator_run_my_doc/TestTemplateItem/portal_components/test.erp5.testRunMyDocConfigurationWorkflow.py
View file @
be9835f1
...
...
@@ -187,10 +187,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
""" Check System Preference"""
system_preference
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"System Preference"
)
conversion_dict
=
_getConversionServerDict
()
self
.
assertEqual
(
system_preference
.
getPreferredOoodocServerPortNumber
(),
conversion_dict
[
'port'
])
self
.
assertEqual
(
system_preference
.
getPreferredOoodocServerAddress
(),
conversion_dict
[
'hostname'
])
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
conversion_dict
[
'url'
])
...
...
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
be9835f1
...
...
@@ -377,11 +377,6 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
preference_tool
.
getPreferredAccountingTransactionGap
())
# on Business Configuration
#self.assertEqual('localhost', preference_tool.getPreferredOoodocServerAddress())
#self.assertEqual(8011, preference_tool.getPreferredOoodocServerPortNumber())
#self.assertEqual('http://localhost:8011', preference_tool.getPreferredDocumentConversionServerUrl())
# accounting
self
.
assertEqual
(
'group/my_group'
,
preference_tool
.
getPreferredAccountingTransactionSectionCategory
())
...
...
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_setUpConfigurationTest.py
View file @
be9835f1
...
...
@@ -21,12 +21,6 @@ default_site_preference.setPreferredHtmlStyleAccessTab('1')
previous_conversion_server_url
=
portal
.
portal_preferences
.
getPreferredDocumentConversionServerUrl
()
default_site_preference
.
setPreferredDocumentConversionServerUrl
(
previous_conversion_server_url
)
previous_conversion_server_address
=
portal
.
portal_preferences
.
getPreferredOoodocServerAddress
()
default_site_preference
.
setPreferredOoodocServerAddress
(
previous_conversion_server_address
)
previous_conversion_port
=
portal
.
portal_preferences
.
getPreferredOoodocServerPortNumber
()
default_site_preference
.
setPreferredOoodocServerPortNumber
(
previous_conversion_port
)
if
default_site_preference
.
getPreferenceState
()
!=
'global'
:
default_site_preference
.
enable
()
...
...
bt5/erp5_configurator_ung/TestTemplateItem/portal_components/test.erp5.testUNGConfigurationWorkflow.py
View file @
be9835f1
...
...
@@ -213,10 +213,6 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
""" Check System Preference"""
system_preference
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"System Preference"
)
conversion_dict
=
_getConversionServerDict
()
self
.
assertEqual
(
system_preference
.
getPreferredOoodocServerPortNumber
(),
conversion_dict
[
'port'
])
self
.
assertEqual
(
system_preference
.
getPreferredOoodocServerAddress
(),
conversion_dict
[
'hostname'
])
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
conversion_dict
[
'url'
])
...
...
bt5/erp5_demo_ung/SkinTemplateItem/portal_skins/erp5_demo_ung/Alarm_configureUng.py
View file @
be9835f1
...
...
@@ -25,7 +25,5 @@ if ung_system_preference is None:
ung_system_preference
=
portal
.
portal_preferences
.
newContent
(
portal_type
=
'System Preference'
,
id
=
'ung_system_preference'
,
title
=
'UNG System Preference'
)
ung_system_preference
.
setPreferredOoodocServerAddress
(
'localhost'
)
ung_system_preference
.
setPreferredOoodocServerPortNumber
(
'8008'
)
ung_system_preference
.
setPreferredDocumentConversionServerUrl
(
'http://localhost:8008'
)
ung_system_preference
.
enable
()
bt5/erp5_dms_conversion_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_preConvertDocumentList.py
View file @
be9835f1
portal
=
context
.
getPortalObject
()
MARKER
=
(
None
,
''
,)
url
=
portal
.
portal_preferences
.
getPreferredDocumentConversionServerUrl
()
address
=
portal
.
portal_preferences
.
getPreferredOoodocServerAddress
()
port
=
portal
.
portal_preferences
.
getPreferredOoodocServerPortNumber
()
# make sure cloudoo is available. this check is required ONLY due to
# unit test nature where a bt5 with a data content which is to be reindexed
# is installed BEFORE the real cloudoo is setup in preferences.
if
url
not
in
MARKER
or
(
address
not
in
MARKER
and
port
not
in
MARKER
):
if
portal
.
portal_preferences
.
getPreferredDocumentConversionServerUrl
(
):
for
index_uid
in
range
(
len
(
uid
)):
document_relative_url
=
getRelativeUrl
[
index_uid
]
document
=
portal
.
restrictedTraverse
(
document_relative_url
)
...
...
bt5/erp5_ingestion/TestTemplateItem/portal_components/test.erp5.testLiveIngestion.py
View file @
be9835f1
...
...
@@ -77,8 +77,6 @@ class TestIngestion(ERP5TypeLiveTestCase):
default_pref
=
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
default_pref
.
setPreferredDocumentFileNameRegularExpression
(
FILE_NAME_REGULAR_EXPRESSION
)
default_pref
.
setPreferredDocumentReferenceRegularExpression
(
REFERENCE_REGULAR_EXPRESSION
)
if
default_pref
.
getPreferenceState
()
!=
'global'
:
...
...
bt5/erp5_web_ung_theme/TestTemplateItem/portal_components/test.erp5.testUNG.py
View file @
be9835f1
...
...
@@ -454,8 +454,6 @@ class TestUNG(ERP5TypeTestCase):
system_preference
=
portal_preferences
.
newContent
(
portal_type
=
'System Preference'
)
conversion_dict
=
_getConversionServerDict
()
system_preference
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
"url"
])
system_preference
.
setPreferredOoodocServerAddress
(
conversion_dict
[
"hostname"
])
system_preference
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
"port"
])
system_preference
.
enable
()
self
.
tic
()
document_path
,
filename
=
self
.
getDocumentPath
()
...
...
product/ERP5/tests/testBase.py
View file @
be9835f1
...
...
@@ -123,8 +123,6 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
default_pref
,
'enable'
):
default_pref
.
enable
()
return
default_pref
...
...
product/ERP5/tests/testCRM.py
View file @
be9835f1
...
...
@@ -1020,8 +1020,6 @@ class TestCRMMailSend(BaseTestCRM):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
default_pref
.
setPreferredDocumentFilenameRegularExpression
(
FILENAME_REGULAR_EXPRESSION
)
default_pref
.
setPreferredDocumentReferenceRegularExpression
(
REFERENCE_REGULAR_EXPRESSION
)
if
default_pref
.
getPreferenceState
()
==
'disabled'
:
...
...
product/ERP5/tests/testERP5WebWithCRM.py
View file @
be9835f1
...
...
@@ -70,8 +70,6 @@ class TestERP5WebWithCRM(ERP5TypeTestCase):
preference
=
preference_list
[
0
]
conversion_dict
=
_getConversionServerDict
()
preference
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
preference
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
preference
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
preference
,
'enable'
):
preference
.
enable
()
...
...
product/ERP5/tests/testERP5WebWithDms.py
View file @
be9835f1
...
...
@@ -154,8 +154,6 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
default_pref
,
'enable'
):
default_pref
.
enable
()
return
default_pref
...
...
product/ERP5/tests/testWebCrawler.py
View file @
be9835f1
...
...
@@ -96,10 +96,6 @@ class TestWebCrawler(ERP5TypeTestCase):
portal_type
=
'System Preference'
)
conversion_dict
=
_getConversionServerDict
()
system_preference
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
system_preference
.
\
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
system_preference
.
\
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
system_preference
.
setPreferredDocumentFilenameRegularExpression
(
FILENAME_REGULAR_EXPRESSION
)
system_preference
.
setPreferredDocumentReferenceRegularExpression
(
...
...
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
View file @
be9835f1
...
...
@@ -132,8 +132,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
preference
=
preference_list
[
0
]
conversion_dict
=
_getConversionServerDict
()
preference
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
preference
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
preference
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
preference
,
'enable'
):
preference
.
enable
()
...
...
product/ERP5OOo/tests/TestFormPrintoutMixin.py
View file @
be9835f1
...
...
@@ -51,8 +51,6 @@ class TestFormPrintoutMixin(ERP5TypeTestCase):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
#default_pref.setPreferredConversionCacheFactory('document_cache_factory')
if
default_pref
.
getPreferenceState
()
!=
'global'
:
default_pref
.
enable
()
...
...
product/ERP5OOo/tests/testDms.py
View file @
be9835f1
...
...
@@ -124,8 +124,6 @@ class TestDocumentMixin(ERP5TypeTestCase):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
default_pref
.
setPreferredDocumentFilenameRegularExpression
(
FILENAME_REGULAR_EXPRESSION
)
default_pref
.
setPreferredDocumentReferenceRegularExpression
(
REFERENCE_REGULAR_EXPRESSION
)
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
default_pref
,
'enable'
):
...
...
product/ERP5OOo/tests/testIngestion.py
View file @
be9835f1
...
...
@@ -141,8 +141,6 @@ class TestIngestion(ERP5TypeTestCase):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
default_pref
.
setPreferredDocumentFilenameRegularExpression
(
FILENAME_REGULAR_EXPRESSION
)
default_pref
.
setPreferredDocumentReferenceRegularExpression
(
REFERENCE_REGULAR_EXPRESSION
)
if
default_pref
.
getPreferenceState
()
!=
'global'
:
...
...
product/ERP5OOo/tests/testOOoImport.py
View file @
be9835f1
...
...
@@ -59,8 +59,6 @@ class TestOOoImportMixin(ERP5TypeTestCase):
portal_type
=
'System Preference'
)
conversion_dict
=
_getConversionServerDict
()
self
.
pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
self
.
pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
self
.
pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
self
.
pref
.
setPriority
(
Priority
.
SITE
)
self
.
pref
.
enable
()
...
...
product/ERP5OOo/tests/testOOoStyle.py
View file @
be9835f1
...
...
@@ -90,8 +90,6 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
if
self
.
portal
.
portal_workflow
.
isTransitionPossible
(
default_pref
,
'enable'
):
default_pref
.
enable
()
return
default_pref
...
...
product/ERP5SyncML/tests/testERP5DocumentSyncML.py
View file @
be9835f1
...
...
@@ -151,8 +151,6 @@ class TestERP5DocumentSyncMLMixin(TestERP5SyncMLMixin):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
conversion_dict
=
_getConversionServerDict
()
default_pref
.
setPreferredDocumentConversionServerUrl
(
conversion_dict
[
'url'
])
default_pref
.
setPreferredOoodocServerAddress
(
conversion_dict
[
'hostname'
])
default_pref
.
setPreferredOoodocServerPortNumber
(
conversion_dict
[
'port'
])
default_pref
.
setPreferredDocumentFileNameRegularExpression
(
FILENAME_REGULAR_EXPRESSION
)
default_pref
.
setPreferredDocumentReferenceRegularExpression
(
REFERENCE_REGULAR_EXPRESSION
)
if
default_pref
.
getPreferenceState
()
==
'disabled'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment