From 9bd169f35cd146daf544d3b23b2c0060add8b5ff Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Wed, 30 Nov 2011 19:08:57 +0200
Subject: [PATCH] Use preferences to control login_form.

---
 .../user_information_widget.xml                 | 17 +----------------
 .../erp5_km_theme/km_css/km.css.xml             |  2 +-
 bt5/erp5_km/bt/revision                         |  2 +-
 3 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/WebSection_viewMinimalKMWidgetFieldLibrary/user_information_widget.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/WebSection_viewMinimalKMWidgetFieldLibrary/user_information_widget.xml
index e90d43e68e..dfc7196b60 100644
--- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/WebSection_viewMinimalKMWidgetFieldLibrary/user_information_widget.xml
+++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/WebSection_viewMinimalKMWidgetFieldLibrary/user_information_widget.xml
@@ -148,9 +148,7 @@
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
-                    <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                    </value>
+                    <value> <string></string> </value>
                 </item>
                 <item>
                     <key> <string>external_validator</string> </key>
@@ -306,17 +304,4 @@
       </dictionary>
     </pickle>
   </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>_text</string> </key>
-            <value> <string>python: context.getLayoutProperty(\'layout_display_user_widget\',True)</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
index bcea94e35f..7e0801fe65 100644
--- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
+++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
@@ -62,7 +62,7 @@
                    menu_opacity python:here.getLayoutProperty(\'layout_navigation_menu_opacity\', \'0.80\');\n
                    menu_width python:here.getLayoutProperty(\'layout_navigation_menu_width\', \'145px\');\n
                    menu_indent python:here.getLayoutProperty(\'layout_navigation_menu_indent\', \'155px\');\n
-                   display_anonymous_user_registration python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True);" >\n
+                   display_anonymous_user_registration python: 1" >\n
 \n
 body, html {\n
   margin:0;\n
diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision
index 291ad8bc92..3130583df1 100644
--- a/bt5/erp5_km/bt/revision
+++ b/bt5/erp5_km/bt/revision
@@ -1 +1 @@
-1842
\ No newline at end of file
+1843
\ No newline at end of file
-- 
2.30.9