Skip to main content

Apply functions to objects in the ZODB

Project description

Introduction

This package allows developers to define functions and apply them to sets of objects through a zope3 view. The sets of objects can be subtrees of the ZODB, or can be defined by a query to portal_catalog.

To use it, you just have to add two lines to your buildout, one to add yaco.applyfun to the eggs section of the main part ([buildout]), and one in the zcml section of the instance part that has to have the view.

Then, you have de @@applyfun view available on any content.

To add functions, you can define them in the walker_funcs.py module of the product, or you can define them in any other module with the same structure (functions plus a “functions” dict) and plug it in through the config.py module of the product. The docstring of the functions will be available as help in the view.

Changelog

1.0 - Unreleased

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaco.applyfun-1.01dev.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

yaco.applyfun-1.01dev-py2.4.egg (18.5 kB view details)

Uploaded Source

File details

Details for the file yaco.applyfun-1.01dev.tar.gz.

File metadata

File hashes

Hashes for yaco.applyfun-1.01dev.tar.gz
Algorithm Hash digest
SHA256 b8ed226a7d5353e82ff05bea4a42ba052e05a31cf477415f9dc333975b5b6cf1
MD5 f2e7c880c618e47ec4f8a40ca3b06d9c
BLAKE2b-256 26c5db53127f1a422c601f26ddeffaedc7b71664e0e4e57b9cd12c888b3c7ec3

See more details on using hashes here.

File details

Details for the file yaco.applyfun-1.01dev-py2.4.egg.

File metadata

File hashes

Hashes for yaco.applyfun-1.01dev-py2.4.egg
Algorithm Hash digest
SHA256 6a772da58beaf552512cea59e37d37166fac85d712c6d7bd2ab76e45e8b77128
MD5 3465a9a3bd1e216a4ca083cb3d789e65
BLAKE2b-256 582461f0f65cf5a80cbfe2cb2fde0a872dd995f89f8ebeaa646cf05fa2538d2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page