[Zope] Login counter for each user

Martin Koekenberg zope at digital-adventures.nl
Sun Oct 17 16:31:47 EDT 2004


Hello, 


I want to count every time a user logs-in.
I've a user map with the user profile in a DTML document. There are also 2 property's (Last login and logincount)
I've also a python script for these 2 property's.
But how can I do this 
Logincoun = logincount + 1
in the following python script:

doc=getattr(context, soid)

doc.manage_changeProperties(logincount=logincount + 1)   ????????
doc.manage_changeProperties(lastlogin=sodate)

Simple questing with (I think) a simple answer, but for me a great help.

Thanks,

Martin Koekenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20041017/5f2104c9/attachment.htm


More information about the Zope mailing list