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:
parent
94b10e85da
commit
3330529cbb
2 changed files with 20 additions and 4 deletions
|
@ -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 '
|
||||||
|
@ -50,7 +62,7 @@ class IField(IComponent):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name = schema.ASCII(
|
name = schema.ASCII(
|
||||||
title=_(u'Fieldname'),
|
title=_(u'Field name'),
|
||||||
description=_(u'The internal name of the field'),
|
description=_(u'The internal name of the field'),
|
||||||
required=True,)
|
required=True,)
|
||||||
title = schema.TextLine(
|
title = schema.TextLine(
|
||||||
|
@ -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'),
|
||||||
|
|
|
@ -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 '
|
||||||
|
|
Loading…
Add table
Reference in a new issue