fix for IProduct: use valid value from vocabulary as default
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2781 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
b06a3e0492
commit
996846f711
1 changed files with 5 additions and 4 deletions
|
@ -28,6 +28,7 @@ from zope.interface import Interface, Attribute
|
||||||
from zope.i18nmessageid import MessageFactory
|
from zope.i18nmessageid import MessageFactory
|
||||||
from loops import util
|
from loops import util
|
||||||
from cybertools.util.jeep import Jeep, Term
|
from cybertools.util.jeep import Jeep, Term
|
||||||
|
from loops import util
|
||||||
|
|
||||||
_ = MessageFactory('cybertools.commerce')
|
_ = MessageFactory('cybertools.commerce')
|
||||||
|
|
||||||
|
@ -122,8 +123,8 @@ class IProduct(Interface):
|
||||||
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'Full Description'),
|
description=_(u'The full description of the product.'),
|
||||||
default=u'',
|
default=u'',
|
||||||
required=False)
|
required=False)
|
||||||
advantages = schema.Text(
|
advantages = schema.Text(
|
||||||
|
@ -145,7 +146,7 @@ class IProduct(Interface):
|
||||||
('2', _(u'Bald im Programm')),
|
('2', _(u'Bald im Programm')),
|
||||||
('3', _(u'Nicht im Programm')),
|
('3', _(u'Nicht im Programm')),
|
||||||
)),
|
)),
|
||||||
default=u'',
|
default='1',
|
||||||
required=True)
|
required=True)
|
||||||
|
|
||||||
categories = Attribute(u'The product categories this product belongs to.')
|
categories = Attribute(u'The product categories this product belongs to.')
|
||||||
|
|
Loading…
Add table
Reference in a new issue