diff --git a/composer/schema/interfaces.py b/composer/schema/interfaces.py index a56b0c2..a53497e 100644 --- a/composer/schema/interfaces.py +++ b/composer/schema/interfaces.py @@ -35,9 +35,21 @@ class ISchema(ITemplate): """ 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 ' - '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. ' 'Should be a sequence of IField objects.') manager = Attribute('A manager object that may provide special ' @@ -50,7 +62,7 @@ class IField(IComponent): """ name = schema.ASCII( - title=_(u'Fieldname'), + title=_(u'Field name'), description=_(u'The internal name of the field'), required=True,) title = schema.TextLine( @@ -59,7 +71,7 @@ class IField(IComponent): required=True,) description = schema.Text( title=_(u'Description'), - description=_(u'A more lengthy description of the field'), + description=_(u'A brief description of the field'), required=False,) fieldType = schema.Choice( title=_(u'Field type'), diff --git a/organize/interfaces.py b/organize/interfaces.py index 9a68445..e70583f 100644 --- a/organize/interfaces.py +++ b/organize/interfaces.py @@ -141,6 +141,10 @@ class IService(Interface): """ 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( title=_(u'Category'), description=_(u'A tokenized term characterizing the type of '