Marco wrote: > Julien Anguenot wrote: > >> The best way would be to create a dedicated tool which would be >> registred as a subscriber of the portal_eventservice that would react on >> events and record the activities within an SQL database. We happened to >> do that for some of our customer projects. You can then request directly >> the SQL database using birt, for instance, to get reports. >> >> Possibly, you will have to throw some new events at some places within >> CPS. Feel free to send the patches for this if you choose this way. We >> will integrate them. > > I will consider this approach. But to not expect to much usability of my code. > My programming skills have rotten the last twenty years >>> A second choice would be to simply log time, userid, and ip address after >>> succesful logins. Which is the relevant source file? >> $ZOPE_INSTANCE/log/z2.log or the apache log file if you are using apache >> in front of Zope. > > I ment some sort of entry point in the CPS code where I can write out the IP > and user ID. Neither in the apache nor in the zope log I find the user id.
The easiest way to hook up would be from "main_template.pt" which is
within CPSSkins, in this case. Check the Zope REQUEST API to extract
from this one the information you're looking for.
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
