Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
dd36cf06
Commit
dd36cf06
authored
Jul 18, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove logging & enable caching.
parent
89b205d8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml
...s/erp5_authentication_policy/Person_isPasswordExpired.xml
+3
-4
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml
...tem/portal_skins/erp5_authentication_policy/logged_in.xml
+1
-1
bt5/erp5_authentication_policy/bt/revision
bt5/erp5_authentication_policy/bt/revision
+1
-1
No files found.
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml
View file @
dd36cf06
...
...
@@ -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
_isPasswordExpired
1
=
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
...
...
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml
View file @
dd36cf06
...
...
@@ -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
...
...
bt5/erp5_authentication_policy/bt/revision
View file @
dd36cf06
3
\ No newline at end of file
4
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment