[Zope3-dev] What replaces EnumeratedTextLine now?
Scott A. Pascoe
manager at planneditsolutions.com
Mon Apr 26 23:15:53 EDT 2004
Stephan, Thanks for the help.
Now a second, and third question.
2. Are you all interested in getting patches to the src/zopeproducts/* tree?
3. Assuming #2 is yes, how should I submit them, as diff -u style patches? Or something else
--
Again, Thanks, Scott
-----Original Message-----
From: Stephan Richter [mailto:srichter at cosmos.phy.tufts.edu]
Sent: Monday, April 26, 2004 5:15 PM
To: zope3-dev at zope.org
Cc: Scott A. Pascoe
Subject: Re: [Zope3-dev] What replaces EnumeratedTextLine now?
On Monday 26 April 2004 18:08, Scott A. Pascoe wrote:
> currentDisplayId = EnumeratedTextLine(
> title=_('Default Size'),
> description=_('The defualt size of the photo(s).'),
> allowed_values=dispIds,
> default=u'medium',
> required=True
> )
>
> What would I replace the EnumeratedTextLine with?
Use
currentDisplayId = Choice(
title=_('Default Size'),
description=_('The defualt size of the photo(s).'),
values=dispIds,
default=u'medium',
required=True
)
That's it.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 4/24/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 4/24/2004
More information about the Zope3-dev
mailing list