state-Versuch
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2780 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
6937f3c04c
commit
b06a3e0492
1 changed files with 35 additions and 9 deletions
|
@ -26,7 +26,7 @@ from zope import schema
|
||||||
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
|
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
|
||||||
from zope.interface import Interface, Attribute
|
from zope.interface import Interface, Attribute
|
||||||
from zope.i18nmessageid import MessageFactory
|
from zope.i18nmessageid import MessageFactory
|
||||||
|
from loops import util
|
||||||
from cybertools.util.jeep import Jeep, Term
|
from cybertools.util.jeep import Jeep, Term
|
||||||
|
|
||||||
_ = MessageFactory('cybertools.commerce')
|
_ = MessageFactory('cybertools.commerce')
|
||||||
|
@ -101,32 +101,58 @@ class IProduct(Interface):
|
||||||
default='',
|
default='',
|
||||||
required=True)
|
required=True)
|
||||||
title = schema.TextLine(
|
title = schema.TextLine(
|
||||||
title=_(u'Title'),
|
title=_(u'Artikelname'),
|
||||||
description=_(u'Short title of the product.'),
|
description=_(u'Artikelname'),
|
||||||
default=u'',
|
default=u'',
|
||||||
required=True)
|
required=True)
|
||||||
|
manufnumber = schema.TextLine(
|
||||||
|
title=_(u'Manufacturer Number'),
|
||||||
|
description=_(u'Manufacturer Number'),
|
||||||
|
default=u'',
|
||||||
|
required=False)
|
||||||
|
headline = schema.TextLine(
|
||||||
|
title=_(u'Headline'),
|
||||||
|
description=_(u'special headline'),
|
||||||
|
default=u'',
|
||||||
|
required=False)
|
||||||
description = schema.Text(
|
description = schema.Text(
|
||||||
title=_(u'Description'),
|
title=_(u'Description'),
|
||||||
description=_(u'A medium-length description of the product.'),
|
description=_(u'Description'),
|
||||||
default=u'',
|
default=u'',
|
||||||
missing_value=u'',
|
missing_value=u'',
|
||||||
required=False)
|
required=False)
|
||||||
fullDescription = schema.Text(
|
fullDescription = schema.Text(
|
||||||
title=_(u'Full description'),
|
title=_(u'Full Description'),
|
||||||
description=_(u'The full description of the object.'),
|
description=_(u'Full Description'),
|
||||||
default=u'',
|
default=u'',
|
||||||
required=False)
|
required=False)
|
||||||
advantages = schema.Text(
|
advantages = schema.Text(
|
||||||
title=_(u'Vorteile'),
|
title=_(u'Advantages'),
|
||||||
description=_(u'Produktvorteile.'),
|
description=_(u'Advantages'),
|
||||||
default=u'',
|
default=u'',
|
||||||
missing_value=u'',
|
missing_value=u'',
|
||||||
required=False)
|
required=False)
|
||||||
|
manufwarranty = schema.Text(
|
||||||
|
title=_(u'Manufacturer Warranty'),
|
||||||
|
description=_(u'Manufacturer Warranty'),
|
||||||
|
default=u'',
|
||||||
|
required=False)
|
||||||
|
state = schema.Choice(
|
||||||
|
title=_(u'State'),
|
||||||
|
description=_(u'State'),
|
||||||
|
source=util.KeywordVocabulary((
|
||||||
|
('1', _(u'Im Programm')),
|
||||||
|
('2', _(u'Bald im Programm')),
|
||||||
|
('3', _(u'Nicht im Programm')),
|
||||||
|
)),
|
||||||
|
default=u'',
|
||||||
|
required=True)
|
||||||
|
|
||||||
categories = Attribute(u'The product categories this product belongs to.')
|
categories = Attribute(u'The product categories this product belongs to.')
|
||||||
suppliers = Attribute(u'The suppliers (typically only one) providing '
|
suppliers = Attribute(u'The suppliers (typically only one) providing '
|
||||||
u'this product.')
|
u'this product.')
|
||||||
shops = Attribute(u'The shops providing this product.')
|
shops = Attribute(u'The shops providing this product.')
|
||||||
|
warranty = Attribute('Warranty of the Product')
|
||||||
|
|
||||||
|
|
||||||
class ICategory(Interface):
|
class ICategory(Interface):
|
||||||
|
|
Loading…
Add table
Reference in a new issue