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
Levin Zimmermann
erp5
Commits
992b261b
Commit
992b261b
authored
Aug 24, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_core: Migrate Domain Document from filesystem.
parent
95bb92f5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
6 deletions
+116
-6
bt5/erp5_web/DocumentTemplateItem/portal_components/document.erp5.WebSection.py
...emplateItem/portal_components/document.erp5.WebSection.py
+1
-1
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.BaseDomain.py
...emplateItem/portal_components/document.erp5.BaseDomain.py
+1
-1
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Domain.py
...entTemplateItem/portal_components/document.erp5.Domain.py
+3
-3
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Domain.xml
...ntTemplateItem/portal_components/document.erp5.Domain.xml
+110
-0
product/ERP5/bootstrap/erp5_core/bt/template_document_id_list
...uct/ERP5/bootstrap/erp5_core/bt/template_document_id_list
+1
-0
product/ERP5Form/Selection.py
product/ERP5Form/Selection.py
+0
-1
No files found.
bt5/erp5_web/DocumentTemplateItem/portal_components/document.erp5.WebSection.py
View file @
992b261b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.D
ocument.Domain
import
Domain
from
erp5.component.d
ocument.Domain
import
Domain
from
Products.ERP5.Document.WebSection
import
WebSectionTraversalHook
from
Products.ERP5.Document.WebSection
import
WebSectionTraversalHook
from
erp5.component.mixin.DocumentExtensibleTraversableMixin
import
DocumentExtensibleTraversableMixin
from
erp5.component.mixin.DocumentExtensibleTraversableMixin
import
DocumentExtensibleTraversableMixin
from
Acquisition
import
aq_base
,
aq_inner
from
Acquisition
import
aq_base
,
aq_inner
...
...
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.BaseDomain.py
View file @
992b261b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type
import
Permissions
from
Products.ERP5.D
ocument.Domain
import
Domain
from
erp5.component.d
ocument.Domain
import
Domain
class
BaseDomain
(
Domain
):
class
BaseDomain
(
Domain
):
"""
"""
...
...
product/ERP5/
Document/
Domain.py
→
product/ERP5/
bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.
Domain.py
View file @
992b261b
...
@@ -113,7 +113,7 @@ class Domain(Predicate, MetaNode, MetaResource):
...
@@ -113,7 +113,7 @@ class Domain(Predicate, MetaNode, MetaResource):
return
tmp_domain_generator
.
getDomainGeneratorList
(
depth
=
depth
,
klass
=
klass
,
script
=
script
,
parent
=
self
)
return
tmp_domain_generator
.
getDomainGeneratorList
(
depth
=
depth
,
klass
=
klass
,
script
=
script
,
parent
=
self
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'generateTempDomain'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'generateTempDomain'
)
def
generateTempDomain
(
self
,
id
):
def
generateTempDomain
(
self
,
id
):
# pylint: disable=redefined-builtin
"""
"""
We generate temp domain here because we must set an aquisition wrapper
We generate temp domain here because we must set an aquisition wrapper
"""
"""
...
...
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Domain.xml
0 → 100644
View file @
992b261b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Domain
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.Domain
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.Domain
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document 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_document_id_list
View file @
992b261b
...
@@ -8,6 +8,7 @@ document.erp5.Delivery
...
@@ -8,6 +8,7 @@ document.erp5.Delivery
document.erp5.DeliveryCell
document.erp5.DeliveryCell
document.erp5.DeliveryLine
document.erp5.DeliveryLine
document.erp5.Document
document.erp5.Document
document.erp5.Domain
document.erp5.DomainGenerator
document.erp5.DomainGenerator
document.erp5.EmailDocument
document.erp5.EmailDocument
document.erp5.Event
document.erp5.Event
...
...
product/ERP5Form/Selection.py
View file @
992b261b
...
@@ -37,7 +37,6 @@ from hashlib import md5
...
@@ -37,7 +37,6 @@ from hashlib import md5
# Put a try in front XXX
# Put a try in front XXX
from
Products.CMFCategory.Category
import
Category
from
Products.CMFCategory.Category
import
Category
from
Products.ERP5.Document.Domain
import
Domain
from
zLOG
import
LOG
from
zLOG
import
LOG
...
...
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