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
Matevz Golob
erp5
Commits
2b0f1e9b
Commit
2b0f1e9b
authored
Aug 04, 2014
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document.erp5.FTPConnector: Add bind address support.
parent
dbaaff66
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
135 additions
and
2 deletions
+135
-2
bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py
...plateItem/portal_components/document.erp5.FTPConnector.py
+5
-1
bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/bind_address_property.xml
...al_property_sheets/FTPConnector/bind_address_property.xml
+32
-0
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml
...eItem/portal_skins/erp5_web_service/FTPConnector_view.xml
+1
-0
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_bind_address.xml
...ns/erp5_web_service/FTPConnector_view/my_bind_address.xml
+96
-0
bt5/erp5_web_service/bt/revision
bt5/erp5_web_service/bt/revision
+1
-1
No files found.
bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py
View file @
2b0f1e9b
...
@@ -55,7 +55,11 @@ class FTPConnector(XMLObject):
...
@@ -55,7 +55,11 @@ class FTPConnector(XMLObject):
password
=
self
.
getPassword
(),
password
=
self
.
getPassword
(),
url
=
self
.
getUrlString
(),
url
=
self
.
getUrlString
(),
transport
=
self
.
getUrlProtocol
(),
transport
=
self
.
getUrlProtocol
(),
transport_kw
=
{
"private_key"
:
self
.
getDescription
(),},)
transport_kw
=
{
'private_key'
:
self
.
getDescription
(),
'bind_address'
:
self
.
getBindAddress
(),
},
)
else
:
else
:
# XXX Must manage in the future ftp and ftps protocol
# XXX Must manage in the future ftp and ftps protocol
raise
NotImplementedError
(
"Protocol %s is not yet implemented"
%
(
self
.
getUrlProtocol
(),))
raise
NotImplementedError
(
"Protocol %s is not yet implemented"
%
(
self
.
getUrlProtocol
(),))
...
...
bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/bind_address_property.xml
0 → 100644
View file @
2b0f1e9b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Local address to bind client connection to.
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
bind_address_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml
View file @
2b0f1e9b
...
@@ -107,6 +107,7 @@
...
@@ -107,6 +107,7 @@
<value>
<value>
<list>
<list>
<string>
my_url_string
</string>
<string>
my_url_string
</string>
<string>
my_bind_address
</string>
<string>
my_url_protocol
</string>
<string>
my_url_protocol
</string>
<string>
my_translated_validation_state_title
</string>
<string>
my_translated_validation_state_title
</string>
</list>
</list>
...
...
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_bind_address.xml
0 → 100644
View file @
2b0f1e9b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_bind_address
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Bind Address
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_service/bt/revision
View file @
2b0f1e9b
7
9
\ No newline at end of file
\ 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