Re: [Zope] ZCatalog and dates

2000-11-28 Thread Uros Midic

 If I do a search for both meta_type of "news" a date of 2000/11/16 in the
 goLiveDate field the results page returns "There was no data matching this
 Catalog query". Yet when I do a search for the meta_type of "news" alone I
 see that indeed the Catalog contains 2 entries with 2000/11/16 in the
 goLiveDate field.

 Why doesn't it find any entries when I search by date?

If goLiveDate is of DateTime type and is being indexed as a field index, try
using a range, for instance:

dtml-in "Catalog( { 'meta_type' : 'news',
'goLiveDate' : [ someDate , someDate + 1 ],
'goLiveDate_usage' : 'range:min:max' } )"

/dtml-in

 someDate is _.DateTime('2000/11/16 00:00') or something like that.

p.s. It's very hard to catch a particular moment in the time continuum, but
it is easier with a time interval. :-)



___
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] (no subject)

2000-07-26 Thread Uros Midic

I'm trying to rewrite my ZClass as a python product.

In the ZClass I uploaded an applet (e.g. called MyApplet.class) in the
methods management screen, so that another method in the same ZClass could
reference it simply with APPLET CODE="MyApplet.class" (both the method and
the applet always had the same base URL, which was the object's URL).

Is there a way to store the applet file (MyApplet.class) in the python
product's folder and serve it so that its URL would be: object's
URL/MyApplet.class   ?

Uros



___
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] Returning a file as a result of object's method?!?

2000-07-26 Thread Uros Midic

* I'm reposting this, because the first time I included no subject by
mistake, sorry *

I'm trying to rewrite my ZClass as a python product.

In the ZClass I uploaded an applet (e.g. called MyApplet.class) in the
methods management screen, so that another method in the same ZClass could
reference it simply with APPLET CODE="MyApplet.class" (both the method and
the applet always had the same base URL, which was the object's URL).

Is there a way to store the applet file (MyApplet.class) in the python
product's folder and serve it so that its URL would be: object's
URL/MyApplet.class   ?

Uros






___
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 )