Log in or register to vote.

collective.beancounter

package to display a fill-percentage for AT based content

collective.beancounter
======================

:Author: $Author: seletz $
:Date: $Date: 2007-11-14 19:46:16 +0100 (Wed, 14 Nov 2007) $
:Revision: $Revision: 53844 $

Abstract
--------

This package scratches an itch of mine in providing a very simple viewlet
which displays the percentage a content is filled by an user.

setup stuff
------------

::

>>> class Mock(object):
... def __init__(self, **kw): self.__sict__.update(kw)

Blurb
-----

First we define an interface to be used to mark bean-countable content::

>>> from zope import interface
>>> class IBeanContable(interface.Interface):
... """ a content which is bean countable """

The counting itself is very simple and done by an adapter. We simply count
which fields ...

0