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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
95bb92f5
Commit
95bb92f5
authored
Aug 24, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_archive: Migrate Archive and ArchiveTool from filesystem.
parent
decf8d39
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
227 additions
and
22 deletions
+227
-22
bt5/erp5_archive/DocumentTemplateItem/portal_components/document.erp5.Archive.py
...ntTemplateItem/portal_components/document.erp5.Archive.py
+0
-1
bt5/erp5_archive/DocumentTemplateItem/portal_components/document.erp5.Archive.xml
...tTemplateItem/portal_components/document.erp5.Archive.xml
+110
-0
bt5/erp5_archive/ToolComponentTemplateItem/portal_components/tool.erp5.ArchiveTool.py
...ntTemplateItem/portal_components/tool.erp5.ArchiveTool.py
+3
-8
bt5/erp5_archive/ToolComponentTemplateItem/portal_components/tool.erp5.ArchiveTool.xml
...tTemplateItem/portal_components/tool.erp5.ArchiveTool.xml
+110
-0
bt5/erp5_archive/bt/template_document_id_list
bt5/erp5_archive/bt/template_document_id_list
+1
-0
bt5/erp5_archive/bt/template_tool_component_id_list
bt5/erp5_archive/bt/template_tool_component_id_list
+1
-0
product/ERP5Catalog/__init__.py
product/ERP5Catalog/__init__.py
+2
-3
product/ERP5Catalog/dtml/explainArchiveTool.dtml
product/ERP5Catalog/dtml/explainArchiveTool.dtml
+0
-10
No files found.
product/ERP5Catalog/Document/
Archive.py
→
bt5/erp5_archive/DocumentTemplateItem/portal_components/document.erp5.
Archive.py
View file @
95bb92f5
...
...
@@ -30,7 +30,6 @@
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
PropertySheet
,
Permissions
,
interfaces
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Core.Predicate
import
Predicate
from
zope.interface
import
implements
...
...
bt5/erp5_archive/DocumentTemplateItem/portal_components/document.erp5.Archive.xml
0 → 100644
View file @
95bb92f5
<?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>
Archive
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5Catalog.Document.Archive
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.Archive
</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/ERP5Catalog/Tool/
ArchiveTool.py
→
bt5/erp5_archive/ToolComponentTemplateItem/portal_components/tool.erp5.
ArchiveTool.py
View file @
95bb92f5
...
...
@@ -28,16 +28,14 @@
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Tool.BaseTool
import
BaseTool
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Cache
import
CachingMethod
,
clearCache
from
Products.ERP5Catalog
import
_dtmldir
from
zLOG
import
LOG
,
INFO
class
ArchiveTool
(
BaseTool
):
"""
Archive Tool contains archive objects
Archive Tool stores archives object which are predicate that tells in
which catalog an object must go.
"""
title
=
'Archive Tool'
id
=
'portal_archives'
...
...
@@ -50,9 +48,6 @@ class ArchiveTool(BaseTool):
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainArchiveTool'
,
_dtmldir
)
def
getSQLCatalogIdList
(
self
):
"""
Wrapper to CatalogTool method
...
...
bt5/erp5_archive/ToolComponentTemplateItem/portal_components/tool.erp5.ArchiveTool.xml
0 → 100644
View file @
95bb92f5
<?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>
ArchiveTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5Catalog.Tool.ArchiveTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.ArchiveTool
</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>
bt5/erp5_archive/bt/template_document_id_list
0 → 100644
View file @
95bb92f5
document.erp5.Archive
\ No newline at end of file
bt5/erp5_archive/bt/template_tool_component_id_list
0 → 100644
View file @
95bb92f5
tool.erp5.ArchiveTool
\ No newline at end of file
product/ERP5Catalog/__init__.py
View file @
95bb92f5
...
...
@@ -37,13 +37,12 @@ this_module = sys.modules[ __name__ ]
document_classes
=
updateGlobals
(
this_module
,
globals
(),
permissions_module
=
Permissions
)
# Define object classes and tools
from
Tool
import
ArchiveTool
,
ERP5CatalogTool
from
Tool
import
ERP5CatalogTool
import
CatalogTool
object_classes
=
()
portal_tools
=
(
CatalogTool
.
CatalogTool
,
ERP5CatalogTool
.
ERP5CatalogTool
,
ArchiveTool
.
ArchiveTool
)
ERP5CatalogTool
.
ERP5CatalogTool
)
content_classes
=
()
content_constructors
=
()
...
...
product/ERP5Catalog/dtml/explainArchiveTool.dtml
deleted
100755 → 0
View file @
decf8d39
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h3> <code>portal_archives</code> Tool </h3>
<p> This tool is used to stored archives object which are predicate
that tells in which catalog an object must go.
</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