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
Paul Graydon
erp5
Commits
55e1ba56
Commit
55e1ba56
authored
Jun 12, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: ZODB Components: Get rid of EPR5Site.setupLastTool(): use bt/template_tool_id_list instead.
parent
f514fa61
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
367 additions
and
19 deletions
+367
-19
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+0
-19
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_acknowledgements.xml
...ap/erp5_core/ToolTemplateItem/portal_acknowledgements.xml
+16
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_deliveries.xml
...ootstrap/erp5_core/ToolTemplateItem/portal_deliveries.xml
+56
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_domains.xml
...5/bootstrap/erp5_core/ToolTemplateItem/portal_domains.xml
+56
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_ids.xml
.../ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_ids.xml
+56
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_introspections.xml
...trap/erp5_core/ToolTemplateItem/portal_introspections.xml
+16
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_orders.xml
...P5/bootstrap/erp5_core/ToolTemplateItem/portal_orders.xml
+16
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_password.xml
.../bootstrap/erp5_core/ToolTemplateItem/portal_password.xml
+30
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_rules.xml
...RP5/bootstrap/erp5_core/ToolTemplateItem/portal_rules.xml
+56
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_simulation.xml
...ootstrap/erp5_core/ToolTemplateItem/portal_simulation.xml
+44
-0
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_tests.xml
...RP5/bootstrap/erp5_core/ToolTemplateItem/portal_tests.xml
+11
-0
product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list
product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list
+10
-0
No files found.
product/ERP5/ERP5Site.py
View file @
55e1ba56
...
@@ -2049,17 +2049,6 @@ class ERP5Generator(PortalGenerator):
...
@@ -2049,17 +2049,6 @@ class ERP5Generator(PortalGenerator):
os
.
path
.
join
(
bt_path
,
'PortalTypeAllowedContentTypeTemplateItem'
,
'allowed_content_types.xml'
)
os
.
path
.
join
(
bt_path
,
'PortalTypeAllowedContentTypeTemplateItem'
,
'allowed_content_types.xml'
)
).
iterfind
(
"portal_type[@id='%s']/*"
%
portal_type
)]
).
iterfind
(
"portal_type[@id='%s']/*"
%
portal_type
)]
def
setupLastTools
(
self
,
p
,
**
kw
):
"""
Set up finals tools
We want to set the activity tool only at the end to
make sure that we do not put un the queue the full reindexation
"""
addERP5Tool
(
p
,
'portal_rules'
,
'Rule Tool'
)
addERP5Tool
(
p
,
'portal_simulation'
,
'Simulation Tool'
)
addERP5Tool
(
p
,
'portal_deliveries'
,
'Delivery Tool'
)
addERP5Tool
(
p
,
'portal_orders'
,
'Order Tool'
)
def
setupTemplateTool
(
self
,
p
,
**
kw
):
def
setupTemplateTool
(
self
,
p
,
**
kw
):
"""
"""
Setup the Template Tool. Security must be set strictly.
Setup the Template Tool. Security must be set strictly.
...
@@ -2098,16 +2087,10 @@ class ERP5Generator(PortalGenerator):
...
@@ -2098,16 +2087,10 @@ class ERP5Generator(PortalGenerator):
# Add ERP5 Tools
# Add ERP5 Tools
addERP5Tool
(
p
,
'portal_categories'
,
'Category Tool'
)
addERP5Tool
(
p
,
'portal_categories'
,
'Category Tool'
)
addERP5Tool
(
p
,
'portal_ids'
,
'Id Tool'
)
if
not
p
.
hasObject
(
'portal_templates'
):
if
not
p
.
hasObject
(
'portal_templates'
):
self
.
setupTemplateTool
(
p
)
self
.
setupTemplateTool
(
p
)
addERP5Tool
(
p
,
'portal_trash'
,
'Trash Tool'
)
addERP5Tool
(
p
,
'portal_trash'
,
'Trash Tool'
)
addERP5Tool
(
p
,
'portal_alarms'
,
'Alarm Tool'
)
addERP5Tool
(
p
,
'portal_alarms'
,
'Alarm Tool'
)
addERP5Tool
(
p
,
'portal_domains'
,
'Domain Tool'
)
addERP5Tool
(
p
,
'portal_tests'
,
'Test Tool'
)
addERP5Tool
(
p
,
'portal_password'
,
'Password Tool'
)
addERP5Tool
(
p
,
'portal_introspections'
,
'Introspection Tool'
)
addERP5Tool
(
p
,
'portal_acknowledgements'
,
'Acknowledgement Tool'
)
# Add ERP5Type Tool
# Add ERP5Type Tool
addERP5Tool
(
p
,
'portal_caches'
,
'Cache Tool'
)
addERP5Tool
(
p
,
'portal_caches'
,
'Cache Tool'
)
...
@@ -2394,8 +2377,6 @@ class ERP5Generator(PortalGenerator):
...
@@ -2394,8 +2377,6 @@ class ERP5Generator(PortalGenerator):
# Make sure the cache is initialized
# Make sure the cache is initialized
p
.
portal_caches
.
updateCache
()
p
.
portal_caches
.
updateCache
()
self
.
setupLastTools
(
p
,
**
kw
)
# Make sure tools are cleanly indexed with a uid before creating children
# Make sure tools are cleanly indexed with a uid before creating children
# XXX for some strange reason, member was indexed 5 times
# XXX for some strange reason, member was indexed 5 times
if
not
update
:
if
not
update
:
...
...
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_acknowledgements.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Acknowledgement Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_acknowledgements
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_deliveries.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Delivery Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_deliveries
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_domains.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Domain Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_domains
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_ids.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Id Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_ids
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_introspections.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Introspection Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_introspections
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_orders.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Order Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_orders
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_password.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Password Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_password_request_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_password
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_rules.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Rule Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_rules
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_simulation.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Simulation Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Member
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Member
</string>
<string>
Author
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
portal_simulation
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_tests.xml
0 → 100644
View file @
55e1ba56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Tool"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary/>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list
View file @
55e1ba56
mimetypes_registry
mimetypes_registry
portal_acknowledgements
portal_callables
portal_callables
portal_contribution_registry
portal_contribution_registry
portal_deliveries
portal_diff
portal_diff
portal_domains
portal_ids
portal_introspections
portal_notifications
portal_notifications
portal_orders
portal_password
portal_rules
portal_sessions
portal_sessions
portal_simulation
portal_tests
portal_transforms
portal_transforms
\ No newline at end of file
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