minor adjustments of interfaces (schemas)

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1929 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-08-17 16:58:17 +00:00
parent 94b10e85da
commit 3330529cbb
2 changed files with 20 additions and 4 deletions

View file

@ -35,9 +35,21 @@ class ISchema(ITemplate):
""" Represents an ordered sequence of fields. """ Represents an ordered sequence of fields.
""" """
name = Attribute('An internal name of the schema; will be used ' name = schema.ASCII(
title=_(u'Schema name'),
description=_(u'The internal name of the schema; will be used '
'to identify data fields of instance objects that ' 'to identify data fields of instance objects that '
'are associated with this schema.') 'are associated with this schema.'),
required=True,)
title = schema.TextLine(
title=_(u'Title'),
description=_(u'The title of the schema'),
required=True,)
description = schema.Text(
title=_(u'Description'),
description=_(u'A brief description of the item.'),
required=False,)
fields = Attribute('The components the schema is built up of. ' fields = Attribute('The components the schema is built up of. '
'Should be a sequence of IField objects.') 'Should be a sequence of IField objects.')
manager = Attribute('A manager object that may provide special ' manager = Attribute('A manager object that may provide special '
@ -59,7 +71,7 @@ class IField(IComponent):
required=True,) required=True,)
description = schema.Text( description = schema.Text(
title=_(u'Description'), title=_(u'Description'),
description=_(u'A more lengthy description of the field'), description=_(u'A brief description of the field'),
required=False,) required=False,)
fieldType = schema.Choice( fieldType = schema.Choice(
title=_(u'Field type'), title=_(u'Field type'),

View file

@ -141,6 +141,10 @@ class IService(Interface):
""" A service that clients may register with. """ A service that clients may register with.
""" """
description = schema.Text(
title=_(u'Description'),
description=_(u'A brief description of the item.'),
required=False,)
category = schema.TextLine( category = schema.TextLine(
title=_(u'Category'), title=_(u'Category'),
description=_(u'A tokenized term characterizing the type of ' description=_(u'A tokenized term characterizing the type of '