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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
c8ad77fb
Commit
c8ad77fb
authored
Jun 24, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Migrate Products.ERP5Type.WebServiceTool from filesystem.
parent
91b98ea1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
19 deletions
+116
-19
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.WebServiceRequest.py
...Item/portal_components/document.erp5.WebServiceRequest.py
+1
-1
bt5/erp5_web_service/ToolComponentTemplateItem/portal_components/tool.erp5.WebServiceTool.py
...emplateItem/portal_components/tool.erp5.WebServiceTool.py
+2
-6
bt5/erp5_web_service/ToolComponentTemplateItem/portal_components/tool.erp5.WebServiceTool.xml
...mplateItem/portal_components/tool.erp5.WebServiceTool.xml
+110
-0
bt5/erp5_web_service/bt/template_tool_component_id_list
bt5/erp5_web_service/bt/template_tool_component_id_list
+1
-0
product/ERP5Type/ConnectionPlugin/SQLConnection.py
product/ERP5Type/ConnectionPlugin/SQLConnection.py
+1
-1
product/ERP5Type/__init__.py
product/ERP5Type/__init__.py
+1
-2
product/ERP5Type/dtml/explainWebServiceTool.dtml
product/ERP5Type/dtml/explainWebServiceTool.dtml
+0
-9
No files found.
bt5/erp5_tiosafe_core/DocumentTemplateItem/portal_components/document.erp5.WebServiceRequest.py
View file @
c8ad77fb
...
...
@@ -33,7 +33,7 @@ from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
from
App.Extensions
import
getBrain
from
lxml
import
etree
from
zLOG
import
LOG
,
ERROR
,
INFO
from
Products.ERP5Type.T
ool.WebServiceTool
import
ConnectionError
from
erp5.component.t
ool.WebServiceTool
import
ConnectionError
from
Products.ERP5Type.Cache
import
CachingMethod
ID_SEPARATOR
=
"-"
...
...
product/ERP5Type/Tool/
WebServiceTool.py
→
bt5/erp5_web_service/ToolComponentTemplateItem/portal_components/tool.erp5.
WebServiceTool.py
View file @
c8ad77fb
...
...
@@ -29,10 +29,9 @@
from
zLOG
import
LOG
,
WARNING
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
import
_dtmldir
class
ConnectionError
(
Exception
):
pass
...
...
@@ -85,9 +84,6 @@ class WebServiceTool(BaseTool):
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainWebServiceTool'
,
_dtmldir
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getConnectionPluginList'
)
def
getConnectionPluginList
(
self
):
...
...
@@ -112,4 +108,4 @@ class WebServiceTool(BaseTool):
**
transport_kw
)
return
connection_handler
.
connect
()
InitializeClass
(
WebServiceTool
)
InitializeClass
(
WebServiceTool
)
\ No newline at end of file
bt5/erp5_web_service/ToolComponentTemplateItem/portal_components/tool.erp5.WebServiceTool.xml
0 → 100644
View file @
c8ad77fb
<?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>
WebServiceTool
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5Type.Tool.WebServiceTool
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
tool.erp5.WebServiceTool
</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_web_service/bt/template_tool_component_id_list
0 → 100644
View file @
c8ad77fb
tool.erp5.WebServiceTool
\ No newline at end of file
product/ERP5Type/ConnectionPlugin/SQLConnection.py
View file @
c8ad77fb
...
...
@@ -26,7 +26,6 @@
#
##############################################################################
from
Products.ERP5Type.Tool.WebServiceTool
import
ConnectionError
from
Products.ERP5.ERP5Site
import
getSite
class
MethodWrapper
(
object
):
...
...
@@ -43,6 +42,7 @@ class MethodWrapper(object):
response
=
method
(
*
args
,
**
kw
)
return
method
.
absolute_url
(),
response
else
:
from
erp5.component.tool.WebServiceTool
import
ConnectionError
raise
ConnectionError
(
"Method %s does not exist"
%
(
method_name
))
class
SQLConnection
:
...
...
product/ERP5Type/__init__.py
View file @
c8ad77fb
...
...
@@ -89,7 +89,7 @@ import Products.ERP5Type.Workflow
def
initialize
(
context
):
# Import Product Components
from
Tool
import
(
CacheTool
,
MemcachedTool
,
TypesTool
,
WebServiceTool
,
PropertySheetTool
,
TypesTool
,
PropertySheetTool
,
ComponentTool
)
import
Document
from
Base
import
Base
...
...
@@ -105,7 +105,6 @@ def initialize( context ):
portal_tools
=
(
CacheTool
.
CacheTool
,
MemcachedTool
.
MemcachedTool
,
TypesTool
.
TypesTool
,
WebServiceTool
.
WebServiceTool
,
PropertySheetTool
.
PropertySheetTool
,
ComponentTool
.
ComponentTool
)
...
...
product/ERP5Type/dtml/explainWebServiceTool.dtml
deleted
100644 → 0
View file @
91b98ea1
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h3>Web Service Tool</h3>
<p>
Web Service Tool can do all kinds of web services in all kinds of protocols.
</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