Source code for pyams_scheduler.interfaces.zodb

#
# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#

__docformat__ = 'restructuredtext'


# import standard library

# import interfaces
from pyams_scheduler.interfaces import ITask

# import packages
from zope.interface import Interface
from zope.schema import Choice, Int

from pyams_scheduler import _


[docs]class IZODBPackingTaskInfo(Interface): """ZODB packing task info""" zeo_connection = Choice(title=_("ZEO connection name"), description=_("Name of ZEO connection utility pointing to packed database"), required=True, vocabulary="PyAMS ZEO connections") pack_time = Int(title=_("Maximum transactions age"), description=_("Transactions older than this age, in days, will be removed"), required=True, default=0)
[docs]class IZODBPackingTask(ITask, IZODBPackingTaskInfo): """ZODB packing task interface"""