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
Amer
erp5
Commits
b9605671
Commit
b9605671
authored
Feb 04, 2019
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: bt5: Interface/Mixin ZODB Components.
parent
7faa0c7d
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
245 additions
and
203 deletions
+245
-203
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+5
-0
product/ERP5/bin/genbt5list
product/ERP5/bin/genbt5list
+2
-0
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+238
-203
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
b9605671
...
@@ -135,7 +135,9 @@ SEPARATELY_EXPORTED_PROPERTY_DICT = {
...
@@ -135,7 +135,9 @@ SEPARATELY_EXPORTED_PROPERTY_DICT = {
"Extension Component"
:
(
"py"
,
0
,
"text_content"
),
"Extension Component"
:
(
"py"
,
0
,
"text_content"
),
"File"
:
(
None
,
0
,
"data"
),
"File"
:
(
None
,
0
,
"data"
),
"Image"
:
(
None
,
0
,
"data"
),
"Image"
:
(
None
,
0
,
"data"
),
"Interface Component"
:
(
"py"
,
0
,
"text_content"
),
"OOoTemplate"
:
(
"oot"
,
1
,
"_text"
),
"OOoTemplate"
:
(
"oot"
,
1
,
"_text"
),
"Mixin Component"
:
(
"py"
,
0
,
"text_content"
),
"PDF"
:
(
"pdf"
,
0
,
"data"
),
"PDF"
:
(
"pdf"
,
0
,
"data"
),
"PDFForm"
:
(
"pdf"
,
0
,
"data"
),
"PDFForm"
:
(
"pdf"
,
0
,
"data"
),
"PyData Script"
:
(
"py"
,
0
,
"_body"
),
"PyData Script"
:
(
"py"
,
0
,
"_body"
),
...
@@ -4212,6 +4214,9 @@ class _ZodbComponentTemplateItem(ObjectTemplateItem):
...
@@ -4212,6 +4214,9 @@ class _ZodbComponentTemplateItem(ObjectTemplateItem):
def
_getZodbObjectId
(
id
):
def
_getZodbObjectId
(
id
):
raise
NotImplementedError
raise
NotImplementedError
def
__init__
(
self
,
id_list
,
tool_id
=
'portal_components'
,
**
kw
):
ObjectTemplateItem
.
__init__
(
self
,
id_list
,
tool_id
=
tool_id
,
**
kw
)
def
isKeepWorkflowObjectLastHistoryOnly
(
self
,
path
):
def
isKeepWorkflowObjectLastHistoryOnly
(
self
,
path
):
"""
"""
Component Validation Workflow last History of ZODB Components must always be
Component Validation Workflow last History of ZODB Components must always be
...
...
product/ERP5/bin/genbt5list
View file @
b9605671
...
@@ -58,6 +58,8 @@ item_name_list = (
...
@@ -58,6 +58,8 @@ item_name_list = (
'workflow'
,
'workflow'
,
'product'
,
'product'
,
'document'
,
'document'
,
'interface'
,
'mixin'
,
'property_sheet'
,
'property_sheet'
,
'constraint'
,
'constraint'
,
'extension'
,
'extension'
,
...
...
product/ERP5/tests/testBusinessTemplate.py
View file @
b9605671
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