Changeset 682

Show
Ignore:
Timestamp:
03/13/07 14:39:34 (2 years ago)
Author:
thomase
Message:

Closes ticket #273. Integrates an ATVocabularyManager managed, VDEX formatted NameAccuracyThesaurus.

Files:

Legend:

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

    r681 r682  
    7878    vocabmap = {'AWMCAncientNameLanguages': ('VdexVocabulary', 'VdexTerm'), 
    7979         'AWMCNameCompleteness': ('VdexVocabulary', 'VdexTerm'), 
     80         'AWMCNameAccuracy': ('VdexVocabulary', 'VdexTerm'), 
    8081         'AWMCPlaceTypes': ('VdexVocabulary', 'VdexTerm'), 
    8182        } 
  • PleiadesEntity/trunk/content/Name.py

    r681 r682  
    7676    StringField( 
    7777        name='accuracy', 
     78        index="FieldIndex", 
     79        vocabulary=NamedVocabulary("""AWMCNameAccuracy"""), 
    7880        default="accurate", 
    79         index="FieldIndex"
     81        enforceVocabulary=1
    8082        widget=SelectionWidget( 
    8183            label="Accuracy of Attestation", 
    8284            label_msgid='PleiadesEntity_label_accuracy', 
    8385            i18n_domain='PleiadesEntity', 
    84         ), 
    85         enforceVocabulary=1, 
    86         vocabulary= ['accurate', 'inaccurate', 'false'] 
     86        ) 
    8787    ), 
    8888 
  • PleiadesEntity/trunk/tests/Vocabularies.txt

    r681 r682  
    3333    >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 
    3434    3 
     35 
     36Test ancient name accuracy vocabulary 
     37------------------------------------- 
     38 
     39    >>> v = vt.getVocabularyByName('AWMCNameAccuracy') 
     40    >>> v.Title() 
     41    'Levels of Attestation Accuracy for Historical Names Distinguished in AWMC Publications' 
     42    >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 
     43    3 
  • PleiadesEntity/trunk/version.txt

    r681 r682  
    1 0.1 build 245 
     10.1 build 246