Changeset 839

Show
Ignore:
Timestamp:
06/14/07 16:14:10 (1 year ago)
Author:
thomase
Message:

permit names of type=undefined, and also report what the offending illegal name-type is when a name fails to load because "invalid"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PleiadesEntity/trunk/Extensions/loader.py

    r746 r839  
    258258        id = ptool.normalizeString(transliteration) 
    259259 
    260         if type not in ['geographic', 'ethnic', 'false']: 
    261             raise EntityLoadError, "Invalid name type" 
     260        if type not in ['geographic', 'ethnic', 'false', 'undefined']: 
     261            raise EntityLoadError, "Invalid name type = %s" % type 
    262262        # false -> geographic 
    263263        if type == 'false': type = 'geographic'