- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- Location:
- WAeUP_SRP/branches/joachim-event-branch/skins/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_custom/logged_in.py
r1489 r1596 21 21 current = DateTime.DateTime() 22 22 import logging 23 logger = logging.getLogger(' Member.Login')23 logger = logging.getLogger('Skins.logged_in') 24 24 25 25 … … 71 71 student_per = getattr(student,'personal',None) 72 72 p_review_state = wftool.getInfoFor(student_per,'review_state',None) 73 logger.info(' "%s", "logged in", "review_state %s"' % (member,s_review_state))73 logger.info('%s logged in, review_state %s' % (member,s_review_state)) 74 74 app_doc = student_app.getContent() 75 75 #from Products.zdb import set_trace;set_trace() 76 76 if load_passport and 'passport' not in app_doc.objectIds(): 77 77 msg = context.waeup_tool.loadStudentFoto(student) 78 logger.info(' "%s", "%s"' % (member,msg))78 logger.info('%s, %s' % (member,msg)) 79 79 if s_review_state in ("student_created","admitted") and\ 80 80 a_review_state == 'created' : … … 134 134 redirect_url = "%s/student_index" % student.absolute_url() 135 135 else: 136 logger.info(' "%s", "logged in"' % (member))136 logger.info('%s logged in' % (member)) 137 137 redirect_url = portal.absolute_url() 138 138 #Anonymous -
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_custom/logout.py
r1082 r1596 10 10 # notify the event service that the user has logged out 11 11 import logging 12 logger = logging.getLogger(' Member.Logout')12 logger = logging.getLogger('Skins.logout') 13 13 user = context.portal_membership.getAuthenticatedMember() 14 14 if user: … … 16 16 evtool = getPublicEventService(context) 17 17 evtool.notifyEvent('user_logout', user, {}) 18 logger.info(' "%s", "logged out"' % (user))18 logger.info('%s logged out' % (user)) 19 19 20 20 REQUEST = context.REQUEST
Note: See TracChangeset for help on using the changeset viewer.