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

Move interface into interfaces module.

Location:
main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp
Files:
2 edited

Legend:

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

    r7773 r7791  
    3131from zope.container.interfaces import INameChooser
    3232from zope.interface import Interface, Attribute, implements
     33from zope.schema.interfaces import IObject
    3334from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
    3435
     
    179180        )
    180181
     182class IResultEntryField(IObject):
     183    """A zope.schema-like field for usage in interfaces.
     184
     185    Marker interface to distuingish result entries from ordinary
     186    object fields. Needed for registration of widgets.
     187    """
     188
    181189class ISIRPUtils(Interface):
    182190    """A collection of methods which are subject to customization.
     
    10041012        required = True,
    10051013        )
    1006 
  • main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/schoolgrades.py

    r7785 r7791  
    2424from zope.schema.interfaces import IObject
    2525from zope.schema import Object
    26 from waeup.sirp.interfaces import IResultEntry
     26from waeup.sirp.interfaces import IResultEntry, IResultEntryField
    2727from waeup.sirp.widgets.objectwidget import (
    2828    SIRPObjectWidget, SIRPObjectDisplayWidget
     
    3535    subject = FieldProperty(IResultEntry['subject'])
    3636    grade = FieldProperty(IResultEntry['grade'])
    37 
    38 class IResultEntryField(IObject):
    39     """A zope.schema-like field for usage in interfaces.
    40 
    41     Marker interface to distuingish result entries from ordinary
    42     object fields. Needed for registration of widgets.
    43     """
    4437
    4538class ResultEntryField(Object):
Note: See TracChangeset for help on using the changeset viewer.