diff --git a/bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py b/bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py index 1c1507a26252bbbbc5fa869ed3bd7e91f3e7ac36..2cf65833f8b94b6d6a367b92e243a6965f4d179c 100644 --- a/bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py +++ b/bt5/erp5_web_service/DocumentTemplateItem/portal_components/document.erp5.FTPConnector.py @@ -55,7 +55,11 @@ class FTPConnector(XMLObject): password=self.getPassword(), url=self.getUrlString(), transport=self.getUrlProtocol(), - transport_kw={"private_key":self.getDescription(),},) + transport_kw={ + 'private_key':self.getDescription(), + 'bind_address': self.getBindAddress(), + }, + ) else: # XXX Must manage in the future ftp and ftps protocol raise NotImplementedError("Protocol %s is not yet implemented" %(self.getUrlProtocol(),)) diff --git a/bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/bind_address_property.xml b/bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/bind_address_property.xml new file mode 100644 index 0000000000000000000000000000000000000000..51128ff07811d686f87630c4cccfd03eb64a0bc4 --- /dev/null +++ b/bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/bind_address_property.xml @@ -0,0 +1,32 @@ +<?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> diff --git a/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml b/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml index 4759901a8b3d74ccfb1fdfa742190e3b8545a136..46c6703b63095db8ab95b873e25eb286f7d75733 100644 --- a/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml +++ b/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml @@ -107,6 +107,7 @@ <value> <list> <string>my_url_string</string> + <string>my_bind_address</string> <string>my_url_protocol</string> <string>my_translated_validation_state_title</string> </list> diff --git a/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_bind_address.xml b/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_bind_address.xml new file mode 100644 index 0000000000000000000000000000000000000000..777af1e58f405c2cfb32d6c5c3c6f915cb6a90eb --- /dev/null +++ b/bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_bind_address.xml @@ -0,0 +1,96 @@ +<?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> diff --git a/bt5/erp5_web_service/bt/revision b/bt5/erp5_web_service/bt/revision index c7930257dfef505fd996e1d6f22f2f35149990d0..f11c82a4cb6cc2e8f3bdf52b5cdeaad4d5bb214e 100644 --- a/bt5/erp5_web_service/bt/revision +++ b/bt5/erp5_web_service/bt/revision @@ -1 +1 @@ -7 \ No newline at end of file +9 \ No newline at end of file