|
|
Choosing A Webhost: |
CVS: Products/CMFCore - CatalogTool.py:1.42.2.5: msg#00073web.zope.cmf.cvs
Update of /cvs-repository/Products/CMFCore In directory cvs.zope.org:/tmp/cvs-serv23989 Modified Files: Tag: CMF-1_4-branch CatalogTool.py Log Message: Better compatibility with existing range syntax implementation. === Products/CMFCore/CatalogTool.py 1.42.2.4 => 1.42.2.5 === --- Products/CMFCore/CatalogTool.py:1.42.2.4 Tue Nov 16 16:52:06 2004 +++ Products/CMFCore/CatalogTool.py Thu Nov 18 10:55:32 2004 @@ -225,19 +225,19 @@ # Intersect query restrictions with those implicit to the tool for k in 'effective', 'expires': if kw.has_key(k): - range = kw[k]['range'].split(':') + range = kw[k]['range'] or '' query = kw[k]['query'] if (not isinstance(query, TupleType) and not isinstance(query, ListType)): query = (query,) else: - range = [] + range = '' query = None - if 'min' in range: + if range.find('min') > -1: lo = min(query) else: lo = None - if 'max' in range: + if range.find('max') > -1: hi = max(query) else: hi = None
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: Products/CMFCore/tests - test_CatalogTool.py:1.3.14.2, Florent Guillaume |
|---|---|
| Next by Date: | CVS: Products/CMFDefault - setuphandlers.py:1.1, Yvo Schubbe |
| Previous by Thread: | CVS: Products/CMFCore/tests - test_CatalogTool.py:1.3.14.2, Florent Guillaume |
| Next by Thread: | CVS: Products/CMFDefault - setuphandlers.py:1.1, Yvo Schubbe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |