interfaces.py
2008-01-11 19:18...
"""Note interface
Interfaces for the Zope 3 based Note package
$Id: interfaces.py 200 2006-10-24 21:54:19Z cray $
"""
from zope.interface import Interface
from zope.schema import Int, Field
from zope.app.component.interfaces import ILocalSiteManager
from zope.app.container.interfaces import IContained
from zope.app.container.constraints import ContainerTypesConstraint
class IQuotaSize(Interface):
"""Quota Size interface"""
size = Int(
title=u"Size",
description=u"Object size",
default=0,
required=True)
class IQuota(Interface) :
""" Quota Utility """
quota = Int(
title=u"Quota",
description=u"Summarize Quota",
default=100,
required=True)
size = Int(
title=u"Size",
description=u"Current summarize size",
default=0,
required=True)
class IQuotaContained(IContained) :
__parent__ = Field(
constraint = ContainerTypesConstraint(ILocalSiteManager))



