A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx#3-133
---------------
With a 'range' query we are now able to search for ranges of
dates. Take a look at this PythonScript snippet::
# return NewsItems newer than a week
zcat = context.NewsCatalog
results = zcat( date={'query' : ZopeTime() - 7,
'range' : 'min'
})
% Anonymous User - Dec. 11, 2003 6:40 am:
When I put that in, it complains about ZopeTime being an undeclared variable. I thought it was always
available
_______________________________________________
ZDP maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.