Changeset 51386

Show
Ignore:
Timestamp:
03/16/07 12:13:42 (3 years ago)
Author:
madarche
Message:

- Fixed #1814 "Misconfiguration of last_login_time default value in members

schema" by improving the logged_in.py script.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSDefault/trunk/CHANGES

    r51332 r51386  
    77Bug fixes 
    88~~~~~~~~~ 
    9 
     9- Fixed #1814 "Misconfiguration of last_login_time default value in members 
     10  schema" by improving the logged_in.py script. 
    1011New internal features 
    1112~~~~~~~~~~~~~~~~~~~~~ 
  • CPS3/products/CPSDefault/trunk/skins/cps_default/logged_in.py

    r49422 r51386  
    6767    return context.user_logged_in_failed() 
    6868 
    69 login_time = member.getProperty('last_login_time', '2000/01/01') 
    70 first_time = (str(login_time) == '2000/01/01') 
     69login_time = member.getProperty('last_login_time', None) 
     70# The '2000/01/01' case is kept for compatibility with CMF 
     71first_time = login_time is None or (str(login_time) == '2000/01/01') 
    7172 
    7273if first_time and member.has_role('Member'):