Ignore:
Timestamp:
8 Jan 2015, 07:01:26 (10 years ago)
Author:
Henrik Bettermann
Message:

Validate all codes in Kofa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py

    r11838 r12414  
    2121from zope import schema
    2222from zope.interface import Attribute, invariant, Invalid
    23 from waeup.kofa.interfaces import (IKofaObject, IKofaContainer)
     23from waeup.kofa.interfaces import IKofaObject, IKofaContainer, validate_id
    2424from waeup.kofa.interfaces import MessageFactory as _
    2525from waeup.kofa.university.vocabularies import (
     
    3939        default = u'NA',
    4040        required = True,
     41        constraint=validate_id,
    4142        )
    4243
     
    6970        default = u'NA',
    7071        required = True,
     72        constraint=validate_id,
    7173        )
    7274
     
    112114        default = u'NA',
    113115        required = True,
     116        constraint=validate_id,
    114117        )
    115118
     
    156159        default = u'NA',
    157160        required = True,
     161        constraint=validate_id,
    158162        )
    159163
Note: See TracChangeset for help on using the changeset viewer.