Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for yaco.applyfun, version 1.01dev
Filename, size File type Python version Upload date Hashes
Filename, size yaco.applyfun-1.01dev-py2.4.egg (18.5 kB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size yaco.applyfun-1.01dev.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page