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
Tatuya Kamada
erp5
Commits
ae4b0e27
Commit
ae4b0e27
authored
6 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Configurator: import mixin, so that `ConfiguratorItemMixin` is added to registry
parent
aebbacb3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
product/ERP5Configurator/__init__.py
product/ERP5Configurator/__init__.py
+1
-0
product/ERP5Configurator/tests/testConfiguratorItem.py
product/ERP5Configurator/tests/testConfiguratorItem.py
+9
-0
No files found.
product/ERP5Configurator/__init__.py
View file @
ae4b0e27
...
...
@@ -38,6 +38,7 @@ this_module = sys.modules[ __name__ ]
document_classes
=
updateGlobals
(
this_module
,
globals
(),
permissions_module
=
Permissions
)
import
mixin
from
Tool
import
ConfiguratorTool
# Define object classes and tools
...
...
This diff is collapsed.
Click to expand it.
product/ERP5Configurator/tests/testConfiguratorItem.py
View file @
ae4b0e27
...
...
@@ -648,3 +648,12 @@ class TestConfiguratorItem(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
pay_link
.
getDeliveryBuilderList
(),
[
"portal_deliveries/payment_transaction_builder"
])
def
test_configurator_item_mixin
(
self
):
"""ConfiguratorItemMixin is available for TTW definition of portal types.
"""
self
.
assertIn
(
'ConfiguratorItemMixin'
,
self
.
portal
.
portal_types
.
newContent
(
portal_type
=
'Base Type'
,
temp_object
=
True
).
getMixinTypeList
())
This diff is collapsed.
Click to expand it.
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