RE: [Zope] date comparison

2000-10-14 Thread Dieter Maurer

michael angelo ruberto writes:
  i had tried something similar already without success. here is the error
  your script caused:
  ...
  Error Type: TypeError
  Error Value: unsubscriptable object
  
  for some reason Zope just doesn't want to compare ZopeTime with
  bobobase_modification_time.

"bobobase_modification_time" is a method (at least for folder), not a value.
Use "_['bobobase_modification_time']" instead.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] date comparison

2000-10-13 Thread michael angelo ruberto

hi,

i had tried something similar already without success. here is the error
your script caused:

DOH!


Zope Error
Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: unsubscriptable object

for some reason Zope just doesn't want to compare ZopeTime with
bobobase_modification_time. i started reading the readme i found for the
python DateTime method but it hasn't shed any light on the situation yet. i
will try doing it with javascript. i can write the modification dates of the
objects into arrays and do the comparisons using a scripting language that
works.

thanks

-mike-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil
Thangavelu
Sent: Wednesday, October 11, 2000 2:53 PM
To: michael angelo ruberto
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] date comparison


michael angelo ruberto wrote:

 i want to create an index page that displays whether or not a page has
been
 updated in the past 7 days or the past 20 days. however, i can't figure
out
 how to get the bobobase_modification_date to compare with ZopeTime. can
 someone give me a clue before i rush blindly down Zope's undocumented dark
 alleys.

 mike

untested

ul
dtml-in "objectValues['DTMLDocument']"
dtml-if "ZopeTime()-7  bobo_base_modifcation_time"
libNew/bdtml-var absolute_url/li
dtml-elif "ZopeTime()-20  bobo_base_modifcation_time"
libSomewhat New/bdtml-var absolute_url/li
dtml-else
libOld/bdtml-var absolute_url/li
/dtml-if
/dtml-in
/ul

kapil

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] date comparison

2000-10-11 Thread Kapil Thangavelu

michael angelo ruberto wrote:
 
 i want to create an index page that displays whether or not a page has been
 updated in the past 7 days or the past 20 days. however, i can't figure out
 how to get the bobobase_modification_date to compare with ZopeTime. can
 someone give me a clue before i rush blindly down Zope's undocumented dark
 alleys.
 
 mike

untested

ul
dtml-in "objectValues['DTMLDocument']"
dtml-if "ZopeTime()-7  bobo_base_modifcation_time"
libNew/bdtml-var absolute_url/li
dtml-elif "ZopeTime()-20  bobo_base_modifcation_time"
libSomewhat New/bdtml-var absolute_url/li
dtml-else
libOld/bdtml-var absolute_url/li
/dtml-if
/dtml-in
/ul

kapil

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )