Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-15 Thread Steve Alexander
Itai Tavor wrote: I have the following ZClasses, with matching Specialists: Product, Graphic, Order, OrderLineItem. When a customer adds a product to their order, they have to provide a graphic file which will be printed on the product (imagine buying a lunch box with your cat's photo

Re: [Zope-dev] more on keyword indexes

2000-12-15 Thread Steve Alexander
Hi Josh, I use KeywordIndexes a lot. Just for kicks, I implemented what you describe below in Zope2.3 grabbed fresh from CVS just now. I used DTML Documents for the objects to catalog, and I added a lines property called KW to each one. I queried the catalog using syntax like dtml-in

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Steve Alexander
Josh Zeidner wrote: Hi, Currently I am wrestling with "keyword" indexes in ZCatalogs. How do I query the ZCatalog for all records of objects indexed on a particular keyword. For instance if my index is named MediaKeyword ive tried: dtml-in "Catalog.searchResults( MediaKeywords =

[Zope-dev] CoreSessionTracking Release 0.2

2000-12-15 Thread Chris McDonough
I had some reports yesterday of the Core Session Tracking development code not working against recent Zope 2.2 releases, so I removed dependencies in the code on the Interface module which were causing the incompatibilities. CoreSessionTracking 0.1 will work against Zope 2.3a1, but not against

Re: [Zope-dev] urllib not available in Python Scripts?

2000-12-15 Thread Evan Simpson
From: Itai Tavor [EMAIL PROTECTED] In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? No, but only the modules available to DTML are importable by default. You would need to provide security declarations in order to

Re: [Zope-dev] Search Interface [was 'case insensitive sorts']

2000-12-15 Thread Casey Duncan
Chris Withers wrote: Rik Hoekstra wrote: Hm, reading this... just a loose comment. In light of the awkward search interface of ZCatalogs, would it be a good idea to make a search interface for ZCatalog ZPatterns based? T I'm starting to feel like a stuck record on this, but lots of

Re: [Zope-dev] Catalog class--does it support boolean queries?

2000-12-15 Thread Casey Duncan
Chris Withers wrote: Marc Conley wrote: boolean queries seem not to work. Should boolean queries work using Catalog or is it necessary to use ZCatalog instead to get that functionality? I'm not sure boolean queries work in either. If they do, anyone know where their syntax is

Re: [Zope-dev] Catalog class--does it support boolean queries?

2000-12-15 Thread Casey Duncan
Chris Withers wrote: Casey Duncan wrote: In doing some more digging in UnTextIndex.py there I do see support for parens and quoted phases, although in practice they do not work. If I find time I will delve into this further. Cool, if you document it anywhere, please let us know...

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: dtml-in "Catalog.searchResults( MediaKeywords = ['ouch'] )" This should work. Alternatively: "MediaKeywords = 'ouch'". dtml-in "Catalog.searchResults( MediaKeywords in ['ouch'] )" This calls the catalog without any keyword arguments and with a single positional

Re: [Zope-dev] more on keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: This seems like the obvious result: BUT: it depends if you want a AND/OR type search. ZCatalog combines several search terms for a single index with "OR" and search expressions for different indexes with an "AND". Dieter

Re: [Zope-dev] urllib not available in Python Scripts?

2000-12-15 Thread Dieter Maurer
Itai Tavor writes: In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? "quote" not, but maybe "urllib". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Re: [Zope] IE5 / Medusa bug?

2000-12-15 Thread Dieter Maurer
seb bacon writes: the Content-length is consistently reported as 14 bytes too short. This is regardless of the actual length of the document. Why this should have a knockon effect on a small subset of MS browsers, I don't know. Especially confusingly random is the

Re: [Zope-dev] A couple of possible Python Scripts bugs

2000-12-15 Thread Itai Tavor
Evan Simpson wrote: From: Itai Tavor [EMAIL PROTECTED] First, when trying to add a Python Script, I sometimes get: Error Type: AttributeError Error Value: tx Thanks! Fixed in CVS. return container.domains returns AttributeError. This does not occur if I try to