Changeset 682
- Timestamp:
- 03/13/07 14:39:34 (2 years ago)
- Files:
-
- PleiadesEntity/trunk/Extensions/Install.py (modified) (1 diff)
- PleiadesEntity/trunk/content/Name.py (modified) (1 diff)
- PleiadesEntity/trunk/data/AWMCNameAccuracy.vdex (added)
- PleiadesEntity/trunk/models/PleiadesEntity.zargo (modified) (previous)
- PleiadesEntity/trunk/tests/Vocabularies.txt (modified) (1 diff)
- PleiadesEntity/trunk/thesauri/certainty/AWMCNameAccuracy.xml (deleted)
- PleiadesEntity/trunk/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesEntity/trunk/Extensions/Install.py
r681 r682 78 78 vocabmap = {'AWMCAncientNameLanguages': ('VdexVocabulary', 'VdexTerm'), 79 79 'AWMCNameCompleteness': ('VdexVocabulary', 'VdexTerm'), 80 'AWMCNameAccuracy': ('VdexVocabulary', 'VdexTerm'), 80 81 'AWMCPlaceTypes': ('VdexVocabulary', 'VdexTerm'), 81 82 } PleiadesEntity/trunk/content/Name.py
r681 r682 76 76 StringField( 77 77 name='accuracy', 78 index="FieldIndex", 79 vocabulary=NamedVocabulary("""AWMCNameAccuracy"""), 78 80 default="accurate", 79 index="FieldIndex",81 enforceVocabulary=1, 80 82 widget=SelectionWidget( 81 83 label="Accuracy of Attestation", 82 84 label_msgid='PleiadesEntity_label_accuracy', 83 85 i18n_domain='PleiadesEntity', 84 ), 85 enforceVocabulary=1, 86 vocabulary= ['accurate', 'inaccurate', 'false'] 86 ) 87 87 ), 88 88 PleiadesEntity/trunk/tests/Vocabularies.txt
r681 r682 33 33 >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 34 34 3 35 36 Test 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 24 51 0.1 build 246
