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
Ludovic Kiefer
erp5
Commits
6e8ab8b4
Commit
6e8ab8b4
authored
Jul 03, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Migrate ERP5TioSafe Product from filesystem.
parent
170b1993
Changes
33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1454 additions
and
953 deletions
+1454
-953
bt5/erp5_oauth/ToolComponentTemplateItem/portal_components/tool.erp5.OAuthTool.py
...nentTemplateItem/portal_components/tool.erp5.OAuthTool.py
+768
-0
bt5/erp5_oauth/ToolComponentTemplateItem/portal_components/tool.erp5.OAuthTool.xml
...entTemplateItem/portal_components/tool.erp5.OAuthTool.xml
+110
-0
bt5/erp5_oauth/ToolTemplateItem/portal_oauth.xml
bt5/erp5_oauth/ToolTemplateItem/portal_oauth.xml
+4
-4
bt5/erp5_oauth/bt/template_tool_component_id_list
bt5/erp5_oauth/bt/template_tool_component_id_list
+1
-0
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationMapping.py
...tem/portal_components/document.erp5.IntegrationMapping.py
+1
-2
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationMapping.xml
...em/portal_components/document.erp5.IntegrationMapping.xml
+110
-0
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationModule.py
...Item/portal_components/document.erp5.IntegrationModule.py
+1
-9
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationModule.xml
...tem/portal_components/document.erp5.IntegrationModule.xml
+110
-0
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationSite.py
...teItem/portal_components/document.erp5.IntegrationSite.py
+2
-2
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationSite.xml
...eItem/portal_components/document.erp5.IntegrationSite.xml
+110
-0
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.WebServiceRequest.py
...Item/portal_components/document.erp5.WebServiceRequest.py
+1
-1
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafeUtils.py
...emplateItem/portal_components/module.erp5.TioSafeUtils.py
+2
-2
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafeUtils.xml
...mplateItem/portal_components/module.erp5.TioSafeUtils.xml
+110
-0
bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationModule_generateSynchronizationObjects.py
...ation/IntegrationModule_generateSynchronizationObjects.py
+2
-2
bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationSite_regenerateSynchronizationObjects.py
...ation/IntegrationSite_regenerateSynchronizationObjects.py
+2
-2
bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationTool_createIntegrationSite.py
...erp5_integration/IntegrationTool_createIntegrationSite.py
+2
-2
bt5/erp5_tiosafe_core/ToolComponentTemplateItem/portal_components/tool.erp5.IntegrationTool.py
...mplateItem/portal_components/tool.erp5.IntegrationTool.py
+0
-0
bt5/erp5_tiosafe_core/ToolComponentTemplateItem/portal_components/tool.erp5.IntegrationTool.xml
...plateItem/portal_components/tool.erp5.IntegrationTool.xml
+110
-0
bt5/erp5_tiosafe_core/bt/template_document_id_list
bt5/erp5_tiosafe_core/bt/template_document_id_list
+5
-2
bt5/erp5_tiosafe_core/bt/template_module_component_id_list
bt5/erp5_tiosafe_core/bt/template_module_component_id_list
+2
-1
bt5/erp5_tiosafe_core/bt/template_tool_component_id_list
bt5/erp5_tiosafe_core/bt/template_tool_component_id_list
+1
-0
product/ERP5TioSafe/Document/__init__.py
product/ERP5TioSafe/Document/__init__.py
+0
-0
product/ERP5TioSafe/Permissions.py
product/ERP5TioSafe/Permissions.py
+0
-0
product/ERP5TioSafe/README.txt
product/ERP5TioSafe/README.txt
+0
-0
product/ERP5TioSafe/Tool/OAuthTool.py
product/ERP5TioSafe/Tool/OAuthTool.py
+0
-770
product/ERP5TioSafe/Tool/__init__.py
product/ERP5TioSafe/Tool/__init__.py
+0
-0
product/ERP5TioSafe/VERSION.txt
product/ERP5TioSafe/VERSION.txt
+0
-1
product/ERP5TioSafe/XSD/nodes.xsd
product/ERP5TioSafe/XSD/nodes.xsd
+0
-37
product/ERP5TioSafe/XSD/resources.xsd
product/ERP5TioSafe/XSD/resources.xsd
+0
-24
product/ERP5TioSafe/XSD/transactions.xsd
product/ERP5TioSafe/XSD/transactions.xsd
+0
-46
product/ERP5TioSafe/__init__.py
product/ERP5TioSafe/__init__.py
+0
-46
product/ERP5TioSafe/refresh.txt
product/ERP5TioSafe/refresh.txt
+0
-0
product/ERP5TioSafe/tool.png
product/ERP5TioSafe/tool.png
+0
-0
No files found.
bt5/erp5_oauth/ToolComponentTemplateItem/portal_components/tool.erp5.OAuthTool.py
0 → 100644
View file @
6e8ab8b4
This diff is collapsed.
Click to expand it.
bt5/erp5_oauth/ToolComponentTemplateItem/portal_components/tool.erp5.OAuthTool.xml
0 → 100644
View file @
6e8ab8b4
<?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>
OAuthTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Tool.OAuthTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.OAuthTool
</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_oauth/ToolTemplateItem/portal_oauth.xml
View file @
6e8ab8b4
...
...
@@ -32,7 +32,7 @@
<global
id=
"1.1"
name=
"_dt_reconstructor"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<global
name=
"OAuthConsumer"
module=
"
Products.ERP5TioSafe.T
ool.OAuthTool"
/>
<global
name=
"OAuthConsumer"
module=
"
erp5.component.t
ool.OAuthTool"
/>
<global
id=
"1.2"
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
...
...
@@ -61,7 +61,7 @@
<object>
<klass>
<reference
id=
"1.1"
/>
</klass>
<tuple>
<global
id=
"1.3"
name=
"OAuthToken"
module=
"
Products.ERP5TioSafe.T
ool.OAuthTool"
/>
<global
id=
"1.3"
name=
"OAuthToken"
module=
"
erp5.component.t
ool.OAuthTool"
/>
<reference
id=
"1.2"
/>
<none/>
</tuple>
...
...
@@ -174,7 +174,7 @@
<global
id=
"5.1"
name=
"_dt_reconstructor"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<global
name=
"OAuthSignatureMethod_HMAC_SHA1"
module=
"
Products.ERP5TioSafe.T
ool.OAuthTool"
/>
<global
name=
"OAuthSignatureMethod_HMAC_SHA1"
module=
"
erp5.component.t
ool.OAuthTool"
/>
<global
id=
"5.2"
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
...
...
@@ -187,7 +187,7 @@
<object>
<klass>
<reference
id=
"5.1"
/>
</klass>
<tuple>
<global
name=
"OAuthSignatureMethod_PLAINTEXT"
module=
"
Products.ERP5TioSafe.T
ool.OAuthTool"
/>
<global
name=
"OAuthSignatureMethod_PLAINTEXT"
module=
"
erp5.component.t
ool.OAuthTool"
/>
<reference
id=
"5.2"
/>
<none/>
</tuple>
...
...
bt5/erp5_oauth/bt/template_tool_component_id_list
0 → 100644
View file @
6e8ab8b4
tool.erp5.OAuthTool
\ No newline at end of file
product/ERP5TioSafe/Document/
IntegrationMapping.py
→
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.
IntegrationMapping.py
View file @
6e8ab8b4
...
...
@@ -26,8 +26,7 @@
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
Constraint
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
class
IntegrationMapping
(
XMLObject
):
...
...
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationMapping.xml
0 → 100644
View file @
6e8ab8b4
<?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>
IntegrationMapping
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Document.IntegrationMapping
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.IntegrationMapping
</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/ERP5TioSafe/Document/
IntegrationModule.py
→
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.
IntegrationModule.py
View file @
6e8ab8b4
...
...
@@ -28,14 +28,6 @@
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5TioSafe.Utils
import
EchoDictTarget
from
Products.PageTemplates.ZopePageTemplate
import
ZopePageTemplate
from
App.Extensions
import
getBrain
from
lxml
import
etree
from
zLOG
import
LOG
,
ERROR
from
urllib2
import
URLError
,
HTTPError
_MARKER
=
[]
class
IntegrationModule
(
XMLObject
):
# CMF Type Definition
...
...
@@ -56,7 +48,7 @@ class IntegrationModule(XMLObject):
,
PropertySheet
.
Arrow
)
def
checkConsistency
(
self
,
fixit
=
False
,
filter
=
None
,
**
kw
):
def
checkConsistency
(
self
,
fixit
=
False
,
filter
=
None
,
**
kw
):
# pylint: disable=redefined-builtin
"""
consistency is checked through a web service request
"""
...
...
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationModule.xml
0 → 100644
View file @
6e8ab8b4
<?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>
IntegrationModule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Document.IntegrationModule
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.IntegrationModule
</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/ERP5TioSafe/Document/
IntegrationSite.py
→
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.
IntegrationSite.py
View file @
6e8ab8b4
...
...
@@ -32,7 +32,7 @@
from
Products.ERP5Type.Core.Folder
import
Folder
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
zLOG
import
LOG
,
INFO
,
ERROR
,
WARNING
from
zLOG
import
LOG
,
INFO
,
ERROR
from
Products.ERP5Type.TransactionalVariable
import
getTransactionalVariable
...
...
@@ -81,7 +81,7 @@ class IntegrationSite(Folder):
raise
ValueError
,
"Empty category provided"
# Split the category to have the base and the variation category
base_category
,
variation_category
=
category
.
split
(
'/'
,
1
)
_
,
variation_category
=
category
.
split
(
'/'
,
1
)
# Check the product variations if exists the product
if
product
is
not
None
:
...
...
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.IntegrationSite.xml
0 → 100644
View file @
6e8ab8b4
<?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>
IntegrationSite
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Document.IntegrationSite
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.IntegrationSite
</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>
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.WebServiceRequest.py
View file @
6e8ab8b4
...
...
@@ -28,7 +28,7 @@
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5TioSafe.
Utils
import
EchoDictTarget
,
NewEchoDictTarget
from
erp5.component.module.TioSafe
Utils
import
EchoDictTarget
,
NewEchoDictTarget
from
Products.PageTemplates.ZopePageTemplate
import
ZopePageTemplate
from
App.Extensions
import
getBrain
from
lxml
import
etree
...
...
product/ERP5TioSafe/
Utils.py
→
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafe
Utils.py
View file @
6e8ab8b4
...
...
@@ -87,7 +87,7 @@ class NewEchoDictTarget:
#self._current_tag = None
try
:
if
len
(
self
.
parser_stack
):
value
,
subtag
=
self
.
parser_stack
[
-
1
][
tag
]
_
,
subtag
=
self
.
parser_stack
[
-
1
][
tag
]
if
subtag
:
if
len
(
self
.
parser_stack
)
==
1
:
# This is the end of an object
...
...
@@ -162,7 +162,7 @@ class EchoDictTarget:
def
end
(
self
,
tag
):
try
:
value
,
root
=
self
.
parser_dict
[
tag
]
_
,
root
=
self
.
parser_dict
[
tag
]
if
root
:
self
.
result_list
.
append
(
self
.
_current_object
.
copy
())
except
KeyError
:
...
...
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafeUtils.xml
0 → 100644
View file @
6e8ab8b4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Module Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
TioSafeUtils
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Utils
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
module.erp5.TioSafeUtils
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Module 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_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationModule_generateSynchronizationObjects.py
View file @
6e8ab8b4
...
...
@@ -38,7 +38,7 @@ pub = sync_tool.newContent(id="%s_%s_pub" %(reference, module_name),
source_reference
=
"%s_%s_synchronization"
%
(
reference
,
module_name
),
url_string
=
portal_object
.
absolute_url
(),
source
=
module
.
getId
(),
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.ERP5%sConduit"
%
(
abstract_class_name
,),
conduit_module_id
=
"
erp5.component.module
.ERP5%sConduit"
%
(
abstract_class_name
,),
list_method_id
=
"%sModule_get%sValueList"
%
(
module_type
,
module_type
),
xml_binding_generator_method_id
=
"%s_asTioSafeXML"
%
(
abstract_class_name
,),
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
@@ -59,7 +59,7 @@ sub = sync_tool.newContent(id="%s_%s_sub" %(reference, module_name),
url_string
=
portal_object
.
absolute_url
(),
source
=
module
.
getRelativeUrl
(),
list_method_id
=
"getObjectList"
,
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.TioSafe%sConduit"
%
(
abstract_class_name
,),
conduit_module_id
=
"
erp5.component.module
.TioSafe%sConduit"
%
(
abstract_class_name
,),
xml_binding_generator_method_id
=
"asXML"
,
content_type
=
"application/vnd.syncml+xml"
,
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationSite_regenerateSynchronizationObjects.py
View file @
6e8ab8b4
...
...
@@ -38,7 +38,7 @@ for module in context.objectValues(portal_type="Integration Module"):
source_reference
=
"%s_%s_synchronization"
%
(
reference
,
module_name
),
url_string
=
portal_object
.
absolute_url
(),
source
=
module
.
getRelativeUrl
(),
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.ERP5%sConduit"
%
(
abstract_class_name
,),
conduit_module_id
=
"
erp5.component.module
.ERP5%sConduit"
%
(
abstract_class_name
,),
list_method_id
=
"%sModule_get%sValueList"
%
(
module_type
,
module_type
),
xml_binding_generator_method_id
=
"%s_asTioSafeXML"
%
(
abstract_class_name
,),
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
@@ -59,7 +59,7 @@ for module in context.objectValues(portal_type="Integration Module"):
url_string
=
portal_object
.
absolute_url
(),
source
=
site
.
getRelativeUrl
(),
list_method_id
=
module
.
getId
(),
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.TioSafe%sConduit"
%
(
abstract_class_name
,),
conduit_module_id
=
"
erp5.component.module
.TioSafe%sConduit"
%
(
abstract_class_name
,),
xml_binding_generator_method_id
=
"asXML"
,
content_type
=
"application/vnd.syncml+xml"
,
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationTool_createIntegrationSite.py
View file @
6e8ab8b4
...
...
@@ -94,7 +94,7 @@ for module_id, abstract_class_name in ordered_module_list:
source_reference
=
"%s_%s_synchronization"
%
(
reference
,
module_name
),
url_string
=
portal_object
.
absolute_url
(),
source
=
module
.
getRelativeUrl
(),
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.ERP5%sConduit"
%
(
abstract_class_name
,
),
conduit_module_id
=
"
erp5.component.module
.ERP5%sConduit"
%
(
abstract_class_name
,
),
list_method_id
=
"%sModule_get%sValueList"
%
(
module_name
,
module_name
),
xml_binding_generator_method_id
=
"%s_asTioSafeXML"
%
(
abstract_class_name
,
),
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
@@ -116,7 +116,7 @@ for module_id, abstract_class_name in ordered_module_list:
url_string
=
portal_object
.
absolute_url
(),
source
=
site
.
getRelativeUrl
(),
list_method_id
=
module
.
getId
(),
conduit_module_id
=
"
Products.ERP5TioSafe.Conduit
.TioSafe%sConduit"
%
(
abstract_class_name
,
),
conduit_module_id
=
"
erp5.component.module
.TioSafe%sConduit"
%
(
abstract_class_name
,
),
xml_binding_generator_method_id
=
"asXML"
,
content_type
=
"application/vnd.syncml+xml"
,
synchronization_id_generator_method_id
=
"generateNewId"
,
...
...
product/ERP5TioSafe/Tool/
IntegrationTool.py
→
bt5/erp5_tiosafe_core/ToolComponentTemplateItem/portal_components/tool.erp5.
IntegrationTool.py
View file @
6e8ab8b4
File moved
bt5/erp5_tiosafe_core/ToolComponentTemplateItem/portal_components/tool.erp5.IntegrationTool.xml
0 → 100644
View file @
6e8ab8b4
<?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>
IntegrationTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5TioSafe.Tool.IntegrationTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.IntegrationTool
</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_tiosafe_core/bt/template_document_id_list
View file @
6e8ab8b4
document.erp5.WebServiceRequestGroup
document.erp5.WebServiceConnector
document.erp5.WebServiceRequest
\ No newline at end of file
document.erp5.WebServiceRequest
document.erp5.WebServiceRequestGroup
document.erp5.IntegrationMapping
document.erp5.IntegrationModule
document.erp5.IntegrationSite
\ No newline at end of file
bt5/erp5_tiosafe_core/bt/template_module_component_id_list
View file @
6e8ab8b4
...
...
@@ -7,4 +7,5 @@ module.erp5.ERP5TransactionConduit
module.erp5.OrganisationERP5IntegrationConduit
module.erp5.TioSafeBaseConduit
module.erp5.TioSafeNodeConduit
module.erp5.TioSafeResourceConduit
\ No newline at end of file
module.erp5.TioSafeResourceConduit
module.erp5.TioSafeUtils
\ No newline at end of file
bt5/erp5_tiosafe_core/bt/template_tool_component_id_list
0 → 100644
View file @
6e8ab8b4
tool.erp5.IntegrationTool
\ No newline at end of file
product/ERP5TioSafe/Document/__init__.py
deleted
100644 → 0
View file @
170b1993
product/ERP5TioSafe/Permissions.py
deleted
100644 → 0
View file @
170b1993
product/ERP5TioSafe/README.txt
deleted
100644 → 0
View file @
170b1993
product/ERP5TioSafe/Tool/OAuthTool.py
deleted
100644 → 0
View file @
170b1993
This diff is collapsed.
Click to expand it.
product/ERP5TioSafe/Tool/__init__.py
deleted
100644 → 0
View file @
170b1993
product/ERP5TioSafe/VERSION.txt
deleted
100644 → 0
View file @
170b1993
ERP5TioSafe 5.4.7
product/ERP5TioSafe/XSD/nodes.xsd
deleted
100644 → 0
View file @
170b1993
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!-- Define the XML Schema of a node -->
<xs:element
name=
"directory"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"node"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"title"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"firstname"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"lastname"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"email"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"birthday"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"phone"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"cellphone"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"fax"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"address"
minOccurs=
"0"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"street"
type=
"xs:string"
/>
<xs:element
name=
"zip"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"city"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"country"
type=
"xs:string"
minOccurs=
"0"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element
name=
"category"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:element
name=
"relation"
type=
"xs:string"
minOccurs=
"0"
/>
</xs:sequence>
<xs:attribute
name=
"type"
use=
"required"
/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
product/ERP5TioSafe/XSD/resources.xsd
deleted
100644 → 0
View file @
170b1993
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!-- Define the XML Schema of a node -->
<xs:element
name=
"catalog"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"resource"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"title"
type=
"xs:string"
/>
<xs:element
name=
"reference"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"sale_price"
type=
"xs:float"
minOccurs=
"0"
/>
<xs:element
name=
"purchase_price"
type=
"xs:float"
minOccurs=
"0"
/>
<xs:element
name=
"ean13"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"category"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</xs:sequence>
<xs:attribute
name=
"type"
use=
"required"
/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
product/ERP5TioSafe/XSD/transactions.xsd
deleted
100644 → 0
View file @
170b1993
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!-- Define the XML Schema of a transaction -->
<xs:element
name=
"journal"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"transaction"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"title"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"start_date"
type=
"xs:string"
/>
<xs:element
name=
"stop_date"
type=
"xs:string"
/>
<xs:element
name=
"reference"
type=
"xs:string"
/>
<xs:element
name=
"currency"
type=
"xs:string"
/>
<xs:element
name=
"payment_mode"
type=
"xs:string"
/>
<xs:element
name=
"category"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:element
name=
"arrow"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"source"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"destination"
type=
"xs:string"
minOccurs=
"0"
/>
</xs:sequence>
<xs:attribute
name=
"type"
use=
"required"
/>
</xs:complexType>
</xs:element>
<xs:element
name=
"movement"
maxOccurs=
"unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element
name=
"resource"
type=
"xs:string"
/>
<xs:element
name=
"title"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"reference"
type=
"xs:string"
minOccurs=
"0"
/>
<xs:element
name=
"quantity"
type=
"xs:float"
/>
<xs:element
name=
"price"
type=
"xs:float"
/>
<xs:element
name=
"VAT"
type=
"xs:string"
/>
<xs:element
name=
"category"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute
name=
"type"
use=
"required"
/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
product/ERP5TioSafe/__init__.py
deleted
100644 → 0
View file @
170b1993
##############################################################################
#
# Copyright (c) 2002-2009 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
# Update ERP5 Globals
from
Products.ERP5Type.Utils
import
initializeProduct
,
updateGlobals
from
Tool
import
IntegrationTool
,
OAuthTool
import
sys
,
Permissions
this_module
=
sys
.
modules
[
__name__
]
document_classes
=
updateGlobals
(
this_module
,
globals
(),
permissions_module
=
Permissions
)
# Finish installation
def
initialize
(
context
):
import
Document
initializeProduct
(
context
,
this_module
,
globals
(),
document_module
=
Document
,
document_classes
=
document_classes
,
object_classes
=
(),
portal_tools
=
(
IntegrationTool
.
IntegrationTool
,
OAuthTool
.
OAuthTool
),
content_constructors
=
(),
content_classes
=
())
product/ERP5TioSafe/refresh.txt
deleted
100644 → 0
View file @
170b1993
product/ERP5TioSafe/tool.png
deleted
100644 → 0
View file @
170b1993
287 Bytes
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