Ignore:
Timestamp:
18 Dec 2011, 10:41:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Log applicant_id not access_code.

Histories should contain real names not user ids.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7368 r7370  
    2222import grok
    2323from time import time
    24 from datetime import datetime
     24from datetime import datetime, date
    2525from zope.component import getUtility, createObject
    2626from zope.formlib.form import setUpEditWidgets
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r7321 r7370  
    159159        user = get_current_principal()
    160160        applicants_root = grok.getSite()['applicants']
    161         applicants_root.logger.info('%s - %s - %s' % (user.id,obj.access_code,msg))
     161        applicants_root.logger.info('%s - %s - %s' % (user.id,obj.applicant_id,msg))
    162162    except (TypeError, AttributeError):
    163163        pass
  • main/waeup.sirp/trunk/src/waeup/sirp/objecthistory.py

    r7321 r7370  
    5858        timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
    5959        user = get_current_principal()
     60        import pdb; pdb.set_trace()
    6061        if user is None:
    6162            user = 'system'
    62         elif user.title == 'Applicant':
    63             user = 'applicant'
     63        elif user.id == 'zope.anybody':
     64            user = 'Anonymous'
    6465        else:
    65             user = user.id
     66            user = user.title
    6667        msg = '%s - %s by %s' % (timestamp, msg, user)
    6768        msgs.append(msg)
Note: See TracChangeset for help on using the changeset viewer.