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
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
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 =
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
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
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
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
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...
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
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
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]
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
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
13 matches
Mail list logo