From a702108a12651251e5646bb43de02fda482d3188 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 13 Jun 2010 15:54:23 +0000 Subject: [PATCH] provide additional field for pre-setting the registration field for a service git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3894 fd906abe-77d9-0310-91a1-e0d9ade77398 --- organize/interfaces.py | 9 +++++++++ organize/service.py | 1 + 2 files changed, 10 insertions(+) diff --git a/organize/interfaces.py b/organize/interfaces.py index d5e83f5..8202842 100644 --- a/organize/interfaces.py +++ b/organize/interfaces.py @@ -220,6 +220,15 @@ class IService(Interface): 'object (participant) may be assigned with one ' 'registration by entering a corresponding number.'), required=False,) + presetRegistrationField = schema.Bool( + title=_(u'Preset Registration Field'), + description=_(u'Check this field if the field for the number ' + u'of registrations should have a default of 1 ' + u'(instead of 0) or the corresponding checkbox ' + u'should be checked by default. This is only useful ' + u'if the service manager contains only a single service.'), + required=False, + default=False) allowDirectRegistration = schema.Bool( title=_(u'Allow direct registration'), description=_(u'When this field is checked participants ' diff --git a/organize/service.py b/organize/service.py index af233ea..b18b794 100644 --- a/organize/service.py +++ b/organize/service.py @@ -102,6 +102,7 @@ class Service(object): allowRegWithNumber = False allowDirectRegistration = True waitingList = False + presetRegistrationField = False def __init__(self, name=None, title=u'', capacity=-1, **kw): self.name = self.__name__ = name