Changeset 7788


Ignore:
Timestamp:
7 Mar 2012, 23:14:52 (13 years ago)
Author:
uli
Message:

Remove MultiValObject? from schemas. We won't use that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/schema/field.py

    r7765 r7788  
    1919"""
    2020from zope.interface import implements
    21 from zope.schema import TextLine, Object
     21from zope.schema import TextLine
    2222from zope.schema.interfaces import (
    2323    ITextLine, IBaseVocabulary, ISource, IContextSourceBinder, InvalidValue,)
    2424from zope.schema.vocabulary import (
    2525    SimpleVocabulary, getVocabularyRegistry, VocabularyRegistryError)
    26 from waeup.sirp.schema.interfaces import IMultiValObject
    2726
    2827class CustomizableErrorMsg(object):
     
    126125            raise InvalidValue(value)
    127126        return
    128 
    129 class MultiValObject(Object):
    130     """A zope.schema.Object-like field for content types with several values.
    131 
    132     You can use it like this in interface definitions::
    133 
    134       myattr = MultiValObject(
    135         schema = IMyComplexType
    136       )
    137 
    138     See :mod:`zope.schema` for further infos about `Object`.
    139 
    140     As multi-value objects should normally be rendered different in
    141     forms than single value objects, we need a different schema
    142     definition for these.
    143 
    144     In waeup.sirp we also provide widgets that render MultiValObjects
    145     automatically.
    146     """
    147     implements(IMultiValObject)
Note: See TracChangeset for help on using the changeset viewer.