Re: Re: track actions of authenticated users
Julien Anguenot <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Organization | NUXEO |
| Message-ID | <[email protected]> |
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 _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE0TwZGhoG8MxZ/pIRAoKAAJ923dlGhAYWk9iKWpC3h01HIO9ncQCdH21r xUv2fFpSSd+mScHdpnT/XYM= =83mU -----END PGP SIGNATURE-----