Changeset 681

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

Closes ticket #279. Vocabulary control for Name.completeness is now handled via an ATVocabularyManager managed VDEX vocabulary (NameCompletenessThesaurus).

Files:

Legend:

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

    r676 r681  
    7777    atvm = getToolByName(self, ATVOCABULARYTOOL) 
    7878    vocabmap = {'AWMCAncientNameLanguages': ('VdexVocabulary', 'VdexTerm'), 
     79         'AWMCNameCompleteness': ('VdexVocabulary', 'VdexTerm'), 
    7980         'AWMCPlaceTypes': ('VdexVocabulary', 'VdexTerm'), 
    8081        } 
  • PleiadesEntity/trunk/content/Name.py

    r676 r681  
    8989    StringField( 
    9090        name='completeness', 
     91        index="FieldIndex", 
     92        vocabulary=NamedVocabulary("""AWMCNameCompleteness"""), 
    9193        default="complete", 
    92         index="FieldIndex"
     94        enforceVocabulary=1
    9395        widget=SelectionWidget( 
    9496            label="Completeness of Attestation", 
    9597            label_msgid='PleiadesEntity_label_completeness', 
    9698            i18n_domain='PleiadesEntity', 
    97         ), 
    98         enforceVocabulary=1, 
    99         vocabulary= ['complete', 'reconstructable', 'non-reconstructable'] 
     99        ) 
    100100    ), 
    101101 
  • PleiadesEntity/trunk/tests/Vocabularies.txt

    r676 r681  
    1717 
    1818Test ancient name languages vocabulary 
    19 --------------------------- 
     19-------------------------------------- 
    2020 
    2121    >>> v = vt.getVocabularyByName('AWMCAncientNameLanguages') 
     
    2525    4 
    2626 
     27Test ancient name completeness vocabulary 
     28----------------------------------------- 
     29 
     30    >>> v = vt.getVocabularyByName('AWMCNameCompleteness') 
     31    >>> v.Title() 
     32    'Levels of Attestation Completeness for Historical Names Distinguished in AWMC Publications' 
     33    >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 
     34    3 
  • PleiadesEntity/trunk/version.txt

    r676 r681  
    1 0.1 build 244 
     10.1 build 245