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
Carlos Ramos Carreño
erp5
Commits
c12b8c8a
Commit
c12b8c8a
authored
Apr 27, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_core: Migrate {Builder,Order,Delivery}Tool from filesystem.
parent
bc1e8d6b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
347 additions
and
48 deletions
+347
-48
product/ERP5/__init__.py
product/ERP5/__init__.py
+1
-3
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.BuilderTool.py
...ntTemplateItem/portal_components/tool.erp5.BuilderTool.py
+0
-0
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.BuilderTool.xml
...tTemplateItem/portal_components/tool.erp5.BuilderTool.xml
+110
-0
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.DeliveryTool.py
...tTemplateItem/portal_components/tool.erp5.DeliveryTool.py
+11
-21
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.DeliveryTool.xml
...TemplateItem/portal_components/tool.erp5.DeliveryTool.xml
+110
-0
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.OrderTool.py
...nentTemplateItem/portal_components/tool.erp5.OrderTool.py
+2
-12
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.OrderTool.xml
...entTemplateItem/portal_components/tool.erp5.OrderTool.xml
+110
-0
product/ERP5/bootstrap/erp5_core/bt/template_tool_component_id_list
...P5/bootstrap/erp5_core/bt/template_tool_component_id_list
+3
-0
product/ERP5/dtml/explainDeliveryTool.dtml
product/ERP5/dtml/explainDeliveryTool.dtml
+0
-6
product/ERP5/dtml/explainOrderTool.dtml
product/ERP5/dtml/explainOrderTool.dtml
+0
-6
No files found.
product/ERP5/__init__.py
View file @
c12b8c8a
...
@@ -42,7 +42,7 @@ product_path = package_home( globals() )
...
@@ -42,7 +42,7 @@ product_path = package_home( globals() )
# Define object classes and tools
# Define object classes and tools
from
Tool
import
CategoryTool
,
IdTool
,
TemplateTool
,
\
from
Tool
import
CategoryTool
,
IdTool
,
TemplateTool
,
\
TestTool
,
DomainTool
,
AlarmTool
,
OrderTool
,
DeliveryTool
,
\
TestTool
,
DomainTool
,
AlarmTool
,
\
TrashTool
,
ContributionTool
,
NotificationTool
,
PasswordTool
,
\
TrashTool
,
ContributionTool
,
NotificationTool
,
PasswordTool
,
\
GadgetTool
,
ContributionRegistryTool
,
IntrospectionTool
,
\
GadgetTool
,
ContributionRegistryTool
,
IntrospectionTool
,
\
AcknowledgementTool
,
SolverTool
,
\
AcknowledgementTool
,
SolverTool
,
\
...
@@ -60,8 +60,6 @@ portal_tools = ( CategoryTool.CategoryTool,
...
@@ -60,8 +60,6 @@ portal_tools = ( CategoryTool.CategoryTool,
AlarmTool
.
AlarmTool
,
AlarmTool
.
AlarmTool
,
DomainTool
.
DomainTool
,
DomainTool
.
DomainTool
,
TestTool
.
TestTool
,
TestTool
.
TestTool
,
OrderTool
.
OrderTool
,
DeliveryTool
.
DeliveryTool
,
TrashTool
.
TrashTool
,
TrashTool
.
TrashTool
,
PasswordTool
.
PasswordTool
,
PasswordTool
.
PasswordTool
,
ContributionTool
.
ContributionTool
,
ContributionTool
.
ContributionTool
,
...
...
product/ERP5/
Tool/
BuilderTool.py
→
product/ERP5/
bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.
BuilderTool.py
View file @
c12b8c8a
File moved
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.BuilderTool.xml
0 → 100644
View file @
c12b8c8a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Tool Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
BuilderTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Tool.BuilderTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.BuilderTool
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Tool Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/
Tool/
DeliveryTool.py
→
product/ERP5/
bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.
DeliveryTool.py
View file @
c12b8c8a
...
@@ -28,27 +28,17 @@
...
@@ -28,27 +28,17 @@
#
#
##############################################################################
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
erp5.component.tool.BuilderTool
import
BuilderTool
from
Products.ERP5.Tool.BuilderTool
import
BuilderTool
from
Products.ERP5Type
import
Permissions
from
Products.ERP5
import
_dtmldir
class
DeliveryTool
(
BuilderTool
):
class
DeliveryTool
(
BuilderTool
):
"""
"""
The DeliveryTool implements portal object
The DeliveryTool implements portal object
deliveries building policies.
deliveries building policies.
"""
"""
id
=
'portal_deliveries'
id
=
'portal_deliveries'
meta_type
=
'ERP5 Delivery Tool'
meta_type
=
'ERP5 Delivery Tool'
portal_type
=
'Delivery Tool'
portal_type
=
'Delivery Tool'
allowed_types
=
(
'ERP5 Delivery Buider'
,)
allowed_types
=
(
'ERP5 Delivery Buider'
,)
# Declarative Security
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainDeliveryTool'
,
_dtmldir
)
InitializeClass
(
DeliveryTool
)
InitializeClass
(
DeliveryTool
)
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.DeliveryTool.xml
0 → 100644
View file @
c12b8c8a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Tool Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
DeliveryTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Tool.DeliveryTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.DeliveryTool
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Tool Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/
Tool/
OrderTool.py
→
product/ERP5/
bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.
OrderTool.py
View file @
c12b8c8a
...
@@ -28,12 +28,8 @@
...
@@ -28,12 +28,8 @@
#
#
##############################################################################
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
erp5.component.tool.BuilderTool
import
BuilderTool
from
Products.ERP5.Tool.BuilderTool
import
BuilderTool
from
Products.ERP5Type
import
Permissions
from
Products.ERP5
import
_dtmldir
class
OrderTool
(
BuilderTool
):
class
OrderTool
(
BuilderTool
):
"""
"""
...
@@ -44,10 +40,4 @@ class OrderTool(BuilderTool):
...
@@ -44,10 +40,4 @@ class OrderTool(BuilderTool):
portal_type
=
'Order Tool'
portal_type
=
'Order Tool'
allowed_types
=
(
'ERP5 Order Buider'
,)
allowed_types
=
(
'ERP5 Order Buider'
,)
# Declarative Security
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainOrderTool'
,
_dtmldir
)
InitializeClass
(
OrderTool
)
InitializeClass
(
OrderTool
)
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.OrderTool.xml
0 → 100644
View file @
c12b8c8a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Tool Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
OrderTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Tool.OrderTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.OrderTool
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Tool Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/bt/template_tool_component_id_list
View file @
c12b8c8a
tool.erp5.BuilderTool
tool.erp5.CallableTool
tool.erp5.CallableTool
tool.erp5.DeliveryTool
tool.erp5.DiffTool
tool.erp5.DiffTool
tool.erp5.OrderTool
tool.erp5.RuleTool
tool.erp5.RuleTool
tool.erp5.SimulationTool
tool.erp5.SimulationTool
\ No newline at end of file
product/ERP5/dtml/explainDeliveryTool.dtml
deleted
100644 → 0
View file @
bc1e8d6b
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p>Explain DeliveryTool</p>
<dtml-var manage_page_footer>
product/ERP5/dtml/explainOrderTool.dtml
deleted
100644 → 0
View file @
bc1e8d6b
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p>Explain OrderTool</p>
<dtml-var manage_page_footer>
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