diff --git a/bt5/erp5_configurator_standard/ExtensionTemplateItem/ConfiguratorCustomer.py b/bt5/erp5_configurator_standard/ExtensionTemplateItem/ConfiguratorCustomer.py deleted file mode 100644 index bf5185c7c69807926d76f61c77614e351731e714..0000000000000000000000000000000000000000 --- a/bt5/erp5_configurator_standard/ExtensionTemplateItem/ConfiguratorCustomer.py +++ /dev/null @@ -1,36 +0,0 @@ -############################################################################## -# -# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved. -# Ivan Tyagov <ivan@nexedi.com> -# Lucas Carvalho <lucas@nexedi.com> -# 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. -# -############################################################################## - -from re import match - -def Base_isValidUserName(self, user_name): - """ - Check if provided user_name is valid one. - Valid username consists of all ASCII letters + numbers + '_' + '.' + '-' - """ - return match("^[a-zA-Z0-9_\-\.]+$", user_name) is not None diff --git a/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/ERP5Site_isValidUserName.xml b/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/ERP5Site_isValidUserName.xml deleted file mode 100644 index b19adde15b2e33b46dfad7fad797438e46fc64e8..0000000000000000000000000000000000000000 --- a/bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/ERP5Site_isValidUserName.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_function</string> </key> - <value> <string>Base_isValidUserName</string> </value> - </item> - <item> - <key> <string>_module</string> </key> - <value> <string>ConfiguratorCustomer</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>ERP5Site_isValidUserName</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Is username a valid one?</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_configurator_standard/bt/change_log b/bt5/erp5_configurator_standard/bt/change_log index e23f8e6507c5d276503777f29192cbbf72f676d7..1819d3ee3852d8448acf28237508fa5fd259ceff 100644 --- a/bt5/erp5_configurator_standard/bt/change_log +++ b/bt5/erp5_configurator_standard/bt/change_log @@ -1,3 +1,6 @@ +2010-01-01 lucas +* Removed External Method used to validate the user name. + 2010-01-01 lucas * Added proxy field in all forms, using base configurator field library. diff --git a/bt5/erp5_configurator_standard/bt/revision b/bt5/erp5_configurator_standard/bt/revision index 06e8971dc662a94702e1d094b4c2ba640351f945..28621d35adae761a9610140bce7572be86f10c78 100644 --- a/bt5/erp5_configurator_standard/bt/revision +++ b/bt5/erp5_configurator_standard/bt/revision @@ -1 +1 @@ -540 \ No newline at end of file +542 \ No newline at end of file diff --git a/bt5/erp5_configurator_standard/bt/template_extension_id_list b/bt5/erp5_configurator_standard/bt/template_extension_id_list deleted file mode 100644 index 61f0669462f3b3aa0f511f75fd14a83816ea8a7a..0000000000000000000000000000000000000000 --- a/bt5/erp5_configurator_standard/bt/template_extension_id_list +++ /dev/null @@ -1 +0,0 @@ -ConfiguratorCustomer \ No newline at end of file