Commit dd36cf06 authored by Ivan Tyagov's avatar Ivan Tyagov

Remove logging & enable caching.

parent 89b205d8
......@@ -77,19 +77,18 @@ def _isPasswordExpired():\n
early_warning = True\n
if expire_date < now:\n
# password is expired\n
context.log(\'expired %s\' %context.getReference())\n
#context.log(\'expired %s\' %context.getReference())\n
return True, early_warning\n
return False, early_warning\n
\n
_isPasswordExpired1 = CachingMethod(_isPasswordExpired,\n
_isPasswordExpired = CachingMethod(_isPasswordExpired,\n
id=\'Person_isPasswordExpired\',\n
cache_factory=\'erp5_content_short\')\n
is_password_expired, is_user_account_password_expired_warning_on = _isPasswordExpired()\n
\n
request.set(\'is_user_account_password_expired\', is_password_expired)\n
request.set(\'is_user_account_password_expired_warning_on\', is_user_account_password_expired_warning_on)\n
\n
context.log(\'in --> %s %s\' %(is_password_expired, is_user_account_password_expired_warning_on))\n
#context.log(\'in --> %s %s\' %(is_password_expired, is_user_account_password_expired_warning_on))\n
return is_password_expired\n
......
......@@ -75,7 +75,7 @@
<tal:block tal:condition="not: isAnon"\n
tal:define="is_user_account_password_expired_warning_on python:request.get(\'is_user_account_password_expired_warning_on\', False);">\n
\n
<!-- XXX: Password will expire soon just war user ? -->\n
<!-- Password will expire soon just war user ? -->\n
<tal:block tal:condition="is_user_account_password_expired_warning_on">\n
<tal:block tal:define="came_from python: request.get(\'came_from\') or here.absolute_url();\n
dummy python: response.redirect(\'%s?portal_status_message=%s\' %(came_from, here.Base_translateString(\'Your password will expire soon.\')));" />\n
......
3
\ No newline at end of file
4
\ 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