So in order trigger a "modification" I actually have to go modify a dummy property? Okay. For now I'll "touch" pages by calling manage_changeProperties() on some dummy property, but in the long run this isn't good enough. I suggest adding a touch() method that lets you update the time stamp programmatically. Why? Well, in my case I have a front page which uses an SQL database for news, articles, and various things. Whenever an editor posts an article (through a Zope-built management interface), the front page should be "touched"; otherwise Zope will give the wrong Last-Modified date to the browser, and all users will see is the old page. Of course, I could just succumb to a fit of laziness and set Cache-Control: no-cache and forget all about it, but I think caching is a good thing. -- Alexander Staubo http://www.mop.no/~alex/ "It has taken the planet Earth 4.5 billion years to discover it is 4.5 billion years old." --George Wald
-----Original Message----- From: Brian Lloyd [mailto:Brian@digicool.com] Sent: 22. juni 1999 18:23 To: 'Alexander Staubo'; Zope Mailing List (E-mail) Subject: RE: [Zope] Updating object's modification timestamp?
Is there any way of updating an object's modification timestamp (_p_mtime or bobobase_modification_time(), from what I gather from the sources) programmatically through Python? How?
Sure - just modify the object ;) The modification time reflects the last time the object was actually modified in the db, and is _depended on_ by the database, so you should not try to modify it yourself...
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com