[Zope3-dev] Changes to the schema package

Jim Fulton jim at zope.com
Tue Jan 6 12:43:38 EST 2004


Philipp von Weitershausen wrote:
> Jim,
> 

...

>>> 2. Enumerated is a base class of many fields. XXX comments say that 
>>> it should go away, which makes a lot of sense, because enumerated 
>>> fields of that type can and should always be made separately. I 
>>> propose to remove Enumerated in all those places.
>>
>>
>> I'm confused. Which XXX are you refering to?
> 
> 
> Lots of, e.g. from src/zope/schema/interfaces.py
> 
> class IBytes(IMinMaxLen, IEnumerated, IIterable, IField):
>     # XXX IEnumerated will be removed in the future.
>     u"""Field containing a byte data(binary!).
> 
>     The value might be contrained to be with length limits.
>     """
> class IASCII(IMinMaxLen, IEnumerated, IIterable, IField):
>     # XXX IEnumerated will be removed in the future.
>     u"""Field containing a byte string (like the python str).
> 
>     The value might be contrained to be with length limits.
>     """
> ...
> 
> class IText(IMinMaxLen, IEnumerated, IIterable, IField):
>     # XXX IEnumerated doesn't make sense for multi-line strings, so will
>     # be removed in the future.

OK, you were talking about IEnumerated, rather than Enumerated.

I'm ok with this.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list