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.0dev.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

yaco.applyfun-1.0dev-py2.4.egg (14.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for yaco.applyfun-1.0dev.tar.gz
Algorithm Hash digest
SHA256 e5d3a2507e26d469cbcbef19a398b38dcba8d22ee306e3b4aebc019a1dad6325
MD5 cbb8f6b03d1840191e99f3ca08e0214e
BLAKE2b-256 386c9b9a3ea8d6918ce6639db6172db38d3d2666e711c5ca27eebf77487e2bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yaco.applyfun-1.0dev-py2.4.egg
Algorithm Hash digest
SHA256 283e9d64f1cb0318c25e914680d69023aaf41158e6c1b5d733ee890215fa2d87
MD5 6400e480011da514c8bfd867984cc6e4
BLAKE2b-256 cdef60f1640cd49691ac9962eb9c9a75efbb398b10060c432d5569987583903d

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