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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
erp5
Commits
84503b42
Commit
84503b42
authored
Jul 05, 2018
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity_test: make sure a conversion server url is set
parent
4d569562
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
12 deletions
+108
-12
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testAndUpdateTestSlideTemplate.zpt
...ts/template_test_zuite/testAndUpdateTestSlideTemplate.zpt
+19
-11
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setConversionServerUrl.py
...5_corporate_identity_test/Zuite_setConversionServerUrl.py
+13
-0
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setConversionServerUrl.xml
..._corporate_identity_test/Zuite_setConversionServerUrl.xml
+1
-1
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setPreferredTextEditor.py
...5_corporate_identity_test/Zuite_setPreferredTextEditor.py
+13
-0
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setPreferredTextEditor.xml
..._corporate_identity_test/Zuite_setPreferredTextEditor.xml
+62
-0
No files found.
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testAndUpdateTestSlideTemplate.zpt
View file @
84503b42
...
...
@@ -27,7 +27,8 @@ Note:
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tal:block
tal:define=
"portal here/portal_url/getPortalObject;
caller python: getattr(context, 'Zuite_setSkipSave', None);
no_file_update python: caller() if caller is not None else True"
>
no_file_update python: caller() if caller is not None else True;
no_file_update python: True;"
>
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
...
...
@@ -40,12 +41,12 @@ Note:
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/Zuite_set
upTemplateTest
</td>
<td>
${base_url}/Zuite_set
PreferredTextEditor
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Ok
</td>
<td>
Editor set to Textarea.
</td>
<td></td>
</tr>
<tr>
...
...
@@ -53,6 +54,18 @@ Note:
<td
tal:content=
"python: ''.join(['skipping save: ', str(no_file_update)])"
></td>
<td></td>
</tr>
<tal:block
tal:condition=
"python: no_file_update == True"
>
<tr>
<td>
open
</td>
<td>
${base_url}/Zuite_setConversionServerUrl
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Conversion Server Url set.
</td>
<td></td>
</tr>
</tal:block>
<tr>
<td>
echo
</td>
<td>
ACTION => EXPORT
</td>
...
...
@@ -767,28 +780,23 @@ Note:
<td>
name=field_format
</td>
<td>
index=1
</td>
</tr>
<tr>
<td>
waitForCouscous0
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_callDialogMethod:method
</td>
<td></td>
</tr>
<tr>
<td>
waitFor
Couscous
</td>
<td>
waitFor
PageToLoad
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>
waitFor
PageToLoad
</td>
<td>
waitFor
Title
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>
waitForCouscousToo
</td>
<td>
assertTitle
</td>
<td></td>
<td></td>
</tr>
...
...
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setConversionServerUrl.py
0 → 100644
View file @
84503b42
"""
================================================================================
Set preference for template test to textarea
================================================================================
"""
# parameters (* default)
# ------------------------------------------------------------------------------
# make sure cloudooo is set for pdf conversions on system_preference
conversion_server_url_list
=
context
.
portal_preferences
.
getPreferredDocumentConversionServerUrlList
()
or
[
"https://cloudooo.erp5.net"
]
system_preference
=
context
.
portal_preferences
.
default_system_preference
system_preference
.
setPreferredDocumentConversionServerUrlList
(
conversion_server_url_list
)
return
"Conversion Server Url set."
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_set
upTemplateTest
.xml
→
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_set
ConversionServerUrl
.xml
View file @
84503b42
...
...
@@ -54,7 +54,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_set
upTemplateTest
</string>
</value>
<value>
<string>
Zuite_set
ConversionServerUrl
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_set
upTemplateTest
.py
→
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_set
PreferredTextEditor
.py
View file @
84503b42
...
...
@@ -6,27 +6,8 @@ Set preference for template test to textarea
# parameters (* default)
# ------------------------------------------------------------------------------
#
inspired by erp5_user_tutorial_ui_test
#
force text_area editor
context
.
Zuite_setPreference
(
''
)
pref
=
context
.
portal_preferences
.
erp5_ui_test_preference
pref
.
setPreferredTextEditor
(
'text_area'
)
#portal = context.getPortalObject()
#zuite_preference_id = "zuite_erp5_ui_test_preference"
#isTransitionPossible = portal.portal_workflow.isTransitionPossible
#
#preference = getattr(portal.portal_preferences, zuite_preference_id, None)
#if preference is None:
# preference = context.portal_preferences.newContent(
# portal_type="Preference",
# id=zuite_preference_id
# )
# if isTransitionPossible(preference, "enable"):
# preference.enable()
#
#preference.setPreferredTextEditor("text_area")
#preference.setPreferredSourceCodeEditor("text_area")
#portal.portal_caches.clearAllCache()
return
"Ok"
preference
=
context
.
portal_preferences
.
erp5_ui_test_preference
preference
.
setPreferredTextEditor
(
'text_area'
)
return
"Editor set to Textarea."
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/Zuite_setPreferredTextEditor.xml
0 → 100644
View file @
84503b42
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</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>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_setPreferredTextEditor
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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