can any one tell me what's the easiest way to find the mdoification date of an object in python. I see references to bobobase_modification_time in some of the dtml files. I though bobo was gone now. -- Robin Becker
Robin Becker wrote:
can any one tell me what's the easiest way to find the mdoification date of an object in python.
o._p_mtime gives the modification time as a time.time.
I see references to bobobase_modification_time in some of the dtml files. I though bobo was gone now.
Since this is an api function, the name won't go away, even though Bobo morphed into Zope. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
In article <37C4821E.81BC6BAA@digicool.com>, Jim Fulton <jim@digicool.com> writes
Robin Becker wrote:
can any one tell me what's the easiest way to find the mdoification date of an object in python.
o._p_mtime
gives the modification time as a time.time.
... thanks -- Robin Becker
In article <tj067EAKdOx3Ewqq@jessikat.demon.co.uk>, Robin Becker <robin@jessikat.demon.co.uk> writes
In article <37C4821E.81BC6BAA@digicool.com>, Jim Fulton <jim@digicool.com> writes
Robin Becker wrote:
can any one tell me what's the easiest way to find the mdoification date of an object in python.
o._p_mtime
gives the modification time as a time.time.
... thanks I tried the following
def make_image(self,id='anImage'): self=self.this().tmp try: self.manage_delObjects([id]) except: pass self.manage_addImage(id,ImageClock(None)) I=self[id] I.content_type='image/gif' return str(I._p_mtime)) and it always returns 'None' is this because the object transaction isn't yet committed? -- Robin Becker
participants (2)
-
Jim Fulton -
Robin Becker