<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<P><FONT face=Arial size=2>Martin,</FONT></P><FONT face=Arial
size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>Google is your friend! I found this in 2
seconds by entering "manage_change_properties" into Google::</FONT>
<P><BR></P><PRE>Quoting from the source ../lib/python/OFS/PropertyManager.py:
def manage_editProperties(self, REQUEST):
"""Edit object properties via the web.
The purpose of this method is to change all property values,
even those not listed in REQUEST; otherwise checkboxes that
get turned off will be ignored. Use manage_changeProperties()
instead for most situations.
"""
def manage_changeProperties(self, REQUEST=None, **kw):
"""Change existing object properties.
Change object properties by passing either a mapping object
of name:value pairs {'foo':6} or passing name=value parameters
"""</PRE></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=zope@digital-adventures.nl
href="mailto:zope@digital-adventures.nl">Martin Koekenberg</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, October 17, 2004 1:31
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] Login counter for each
user</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hello, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want to count every time a user
logs-in.</FONT></DIV>
<DIV><FONT face=Arial size=2>I've a user map with the user profile in a DTML
document. There are also 2 property's (Last login and logincount)</FONT></DIV>
<DIV><FONT face=Arial size=2>I've also a python script for these 2
property's.</FONT></DIV>
<DIV><FONT face=Arial size=2>But how can I do this </FONT></DIV>
<DIV><FONT face=Arial size=2>Logincoun = logincount + 1</FONT></DIV>
<DIV><FONT face=Arial size=2>in the following python script:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>doc=getattr(context, soid)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>doc.manage_changeProperties(logincount=logincount
+ 1) ????????<BR></FONT><FONT face=Arial
size=2>doc.manage_changeProperties(lastlogin=sodate)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Simple questing with (I think) a simple answer,
but for me a great help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Martin Koekenberg</DIV></FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Zope maillist
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>