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
This commit is contained in:
parent
a39e444298
commit
a702108a12
2 changed files with 10 additions and 0 deletions
|
@ -220,6 +220,15 @@ class IService(Interface):
|
||||||
'object (participant) may be assigned with one '
|
'object (participant) may be assigned with one '
|
||||||
'registration by entering a corresponding number.'),
|
'registration by entering a corresponding number.'),
|
||||||
required=False,)
|
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(
|
allowDirectRegistration = schema.Bool(
|
||||||
title=_(u'Allow direct registration'),
|
title=_(u'Allow direct registration'),
|
||||||
description=_(u'When this field is checked participants '
|
description=_(u'When this field is checked participants '
|
||||||
|
|
|
@ -102,6 +102,7 @@ class Service(object):
|
||||||
allowRegWithNumber = False
|
allowRegWithNumber = False
|
||||||
allowDirectRegistration = True
|
allowDirectRegistration = True
|
||||||
waitingList = False
|
waitingList = False
|
||||||
|
presetRegistrationField = False
|
||||||
|
|
||||||
def __init__(self, name=None, title=u'', capacity=-1, **kw):
|
def __init__(self, name=None, title=u'', capacity=-1, **kw):
|
||||||
self.name = self.__name__ = name
|
self.name = self.__name__ = name
|
||||||
|
|
Loading…
Add table
Reference in a new issue