Ignore:
Timestamp:
19 Dec 2014, 08:11:12 (10 years ago)
Author:
Henrik Bettermann
Message:

Validate document and contract ids properly.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/documents
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/batching.py

    r12256 r12260  
    119119                errs.append(('class_name','wrong processor'))
    120120        document_id = row.get('document_id', None)
    121         if ' ' in document_id:
    122             errs.append(('document_id','must not contain spaces'))
    123121        return errs, inv_errs, conv_dict
    124122
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py

    r12256 r12260  
    1919from zope import schema
    2020from waeup.ikoba.interfaces import (
    21     IIkobaObject,
     21    IIkobaObject, validate_id,
    2222    ContextualDictSourceFactoryBase)
    2323from waeup.ikoba.interfaces import MessageFactory as _
     
    5252        title = _(u'Document Id'),
    5353        required = False,
     54        constraint=validate_id,
    5455        )
    5556
Note: See TracChangeset for help on using the changeset viewer.