From 58116e43e6aeb9f124842ff96eae757fc64b6076 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 23 Nov 2009 16:43:18 +0000
Subject: [PATCH] remove preferred_telephone_default_region because we don't
 have telephone_region in Telephone property sheet.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30820 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Preference_viewBasePreference.xml         |  4 +-
 .../my_preferred_telephone_default_region.xml | 93 -------------------
 bt5/erp5_base/bt/revision                     |  2 +-
 .../ERP5/PropertySheet/TelephonePreference.py |  7 --
 4 files changed, 2 insertions(+), 104 deletions(-)
 delete mode 100644 bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference/my_preferred_telephone_default_region.xml

diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference.xml
index 832c875164..147d1c013a 100644
--- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference.xml
+++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference.xml
@@ -91,9 +91,7 @@
                 <item>
                     <key> <string>right</string> </key>
                     <value>
-                      <list>
-                        <string>my_preferred_telephone_default_region</string>
-                      </list>
+                      <list/>
                     </value>
                 </item>
               </dictionary>
diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference/my_preferred_telephone_default_region.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference/my_preferred_telephone_default_region.xml
deleted file mode 100644
index 943534b361..0000000000
--- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Preference_viewBasePreference/my_preferred_telephone_default_region.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>delegated_list</string> </key>
-            <value>
-              <list/>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>my_preferred_telephone_default_region</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_region</string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string>Address_viewFieldLibrary</string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string>Click to edit the target</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index 26f252bdd8..4aeea8c347 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-649
\ No newline at end of file
+650
\ No newline at end of file
diff --git a/product/ERP5/PropertySheet/TelephonePreference.py b/product/ERP5/PropertySheet/TelephonePreference.py
index d15a434d98..eeeb032083 100644
--- a/product/ERP5/PropertySheet/TelephonePreference.py
+++ b/product/ERP5/PropertySheet/TelephonePreference.py
@@ -55,11 +55,4 @@ class TelephonePreference:
       'mode'        : 'w',
       'default'     : '',
     },
-    { 'id'          : 'preferred_telephone_default_region',
-      'description' : 'The default region.',
-      'type'        : 'string',
-      'preference'  : 1,
-      'mode'        : 'w',
-      'default'     : '',
-    },
     )
-- 
2.30.9