Commit 9af5c430 authored by Ivan Tyagov's avatar Ivan Tyagov

Use WebSitePreference to show / hide login functionality.

parent 23be927c
...@@ -142,7 +142,9 @@ ...@@ -142,7 +142,9 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -176,6 +178,10 @@ ...@@ -176,6 +178,10 @@
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>text_editor</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -285,4 +291,17 @@ ...@@ -285,4 +291,17 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getWebSiteValue().isUserAllowedLogin()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -142,7 +142,9 @@ ...@@ -142,7 +142,9 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -176,6 +178,10 @@ ...@@ -176,6 +178,10 @@
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>text_editor</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -290,4 +296,17 @@ true);"\n ...@@ -290,4 +296,17 @@ true);"\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getWebSiteValue().isUserAllowedLogin()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -91,7 +91,9 @@ ...@@ -91,7 +91,9 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>extra</string> </key> <key> <string>extra</string> </key>
...@@ -101,6 +103,10 @@ ...@@ -101,6 +103,10 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>image</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -164,13 +170,7 @@ ...@@ -164,13 +170,7 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -181,4 +181,17 @@ ...@@ -181,4 +181,17 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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: here.getWebSiteValue().isUserAllowedLogin()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -261,19 +261,13 @@ ...@@ -261,19 +261,13 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.Base_translateString("Existing users please log in by entering your email address and password in the two fields below.")</string> </value> <value> <string>python:test(here.getWebSiteValue().isUserAllowedLogin(), here.Base_translateString("Existing users please log in by entering your email address and password in the two fields below."), here.Base_translateString("This web site does not allow user login."))</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -140,9 +140,7 @@ ...@@ -140,9 +140,7 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -269,20 +267,7 @@ ...@@ -269,20 +267,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.Base_translateString("If you have not created an account yet, please fill all the fields below to register yourself and create a new account.")</string> </value> <value> <string>python: test(here.isUserAllowedRequestNewAccount(), here.Base_translateString("If you have not created an account yet, please fill all the fields below to register yourself and create a new account."), here.Base_translateString("User registration is not allowed for this web site."))</string> </value>
</item>
</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_anonymous_user_registration\',True)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -146,7 +146,9 @@ ...@@ -146,7 +146,9 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -295,4 +297,17 @@ id="reference"/>\n ...@@ -295,4 +297,17 @@ id="reference"/>\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getWebSiteValue().isUserAllowedRequestPasswordReset()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -67,6 +67,10 @@ ...@@ -67,6 +67,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -122,7 +126,7 @@ ...@@ -122,7 +126,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.getLayoutProperty(\'layout_display_anonymous_user_registration\',True)</string> </value> <value> <string>python: here.getWebSiteValue().isUserAllowedRequestNewAccount()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1838 1839
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment