Skip to main content

Proxy Index

Purpose

Proxy Index, is a plugin catalog index. it uses a tales expression to retrieve a value to index from an object. the value retrieved can then be indexed by any available plugin index.

Primary Use Case

For indexing attributes of subobjects when indexing a container, like a composite elements of a compound document, or object annotations.

Usage

From the ZCatalog indexes tab, add a index of type proxy index.

On the add form the following fields are defined:

Id

pick any valid id you like

Delegated type

the type of index you’d like to use for the value

Tales expression

a tales expression evaluated for the value to index.

The default context includes object (the object being indexed) and the following standard tales objects:

  • nothing

  • request

  • modules

Key Value Pairs

are input forms for passing values to the index constructor, if any are needed. (as with zctextindex for example). for most index types this can be left blank

As an example here’s how to fill out a form for ZCTextIndex:

key value pair: lexicon_id  my_lexicon
key value pair: index_type  Cosine Measure
key value pair: doc_attr    proxy_value

The last key value pair could use a little explanation. internally the proxy index stores the index as an index named proxy_value, the behavior for most indexes is to index an attribute name thats equivalent to the index’s id. proxy index, constructs a wrapper object for the indexing setting the value of the tales expression equal to that of the index name. in this case, ZCTextIndex must be treated slightly differently as it can index an arbitrary attribute independent of its name, for most other index types this is not needed.

Changes

1.2.3 (2008/09/30)

  • Update README and CHANGES to release that products as an egg.

1.2.2

  • In Zope 2.11, argument cid to apply_index have been removed.

1.2.1

  • Fixed deprecation warning in Zope 2.10,

  • Tests now use (and require) ZopeTestCase instead of depending on CMF.

1.2

Bugs Fixed:

  • Zope 2.7 is supported now.

  • Fixed compatibility problem with python2.3: ProxyIndex.RecordStyle did not raise an AttributeError but a KeyError in __getattr__, preventing class attribute lookup with python2.3.

1.1.2

Bugs Fixed:

  • items method used for sort_on added.

1.1.1

Features added:

  • Release documentation updates, making it fit the Infrae scheme.

1.1

  • Initial public release of ProxyIndex.

Metadata

Release files for Products.ProxyIndex 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Products.ProxyIndex 1.2.3
File Size Uploaded
Products.ProxyIndex-1.2.3.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Products.ProxyIndex 1.2.3
File Interpreter ABI Platform
Products.ProxyIndex-1.2.3-py2.4.egg Legacy Egg format - - Details

Total release size: 34.6 kB

Release files / Products.ProxyIndex-1.2.3.tar.gz

Download URL Products.ProxyIndex-1.2.3.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
45abb1fef971f815420522c9edd9b1702feaa9cda8106811ca957078725b380b
BLAKE2b-256 checksum
How to use checksums
670aad88ee03baaeb2efd8c6aaadef3ecdfc91ffff54a30b9235cb6319cac00b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Products.ProxyIndex-1.2.3-py2.4.egg

Download URL Products.ProxyIndex-1.2.3-py2.4.egg
Size 24.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
d0f5326f7960768ebfc1111120ea797a8fdb47492389e2e6a7a6bdd496e34686
BLAKE2b-256 checksum
How to use checksums
d2237fd6b8abdf2a268f05a6bda4ee0959ef47a4157c731b90209bfcc80ab6cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page