Changeset 685
- Timestamp:
- 03/13/07 16:49:25 (2 years ago)
- Files:
-
- PleiadesEntity/trunk/Extensions/Install.py (modified) (1 diff)
- PleiadesEntity/trunk/Extensions/loader.py (modified) (3 diffs)
- PleiadesEntity/trunk/content/PlacefulAssociation.py (modified) (1 diff)
- PleiadesEntity/trunk/data/AWMCPlacefulAssociationCertainty.vdex (added)
- PleiadesEntity/trunk/i18n/generated.pot (modified) (2 diffs)
- PleiadesEntity/trunk/models/PleiadesEntity.zargo (modified) (previous)
- PleiadesEntity/trunk/tests/LoadEntity.txt (modified) (3 diffs)
- PleiadesEntity/trunk/tests/Vocabularies.txt (modified) (1 diff)
- PleiadesEntity/trunk/thesauri/certainty/AWMCPlacefulAssociationCertainty.xml (deleted)
- PleiadesEntity/trunk/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesEntity/trunk/Extensions/Install.py
r683 r685 76 76 from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL 77 77 atvm = getToolByName(self, ATVOCABULARYTOOL) 78 vocabmap = {'AWMC AncientNameLanguages': ('VdexVocabulary', 'VdexTerm'),78 vocabmap = {'AWMCTemporalAttestationConfidence': ('VdexVocabulary', 'VdexTerm'), 79 79 'AWMCPlaceTypes': ('VdexVocabulary', 'VdexTerm'), 80 'AWMCAncientNameLanguages': ('VdexVocabulary', 'VdexTerm'), 81 'AWMCNameAccuracy': ('VdexVocabulary', 'VdexTerm'), 82 'AWMCPlacefulAssociationCertainty': ('VdexVocabulary', 'VdexTerm'), 80 83 'AWMCNameCompleteness': ('VdexVocabulary', 'VdexTerm'), 81 'AWMCNameAccuracy': ('VdexVocabulary', 'VdexTerm'),82 'AWMCTemporalAttestationConfidence': ('VdexVocabulary', 'VdexTerm'),83 84 } 84 85 for vocabname in vocabmap.keys(): PleiadesEntity/trunk/Extensions/loader.py
r683 r685 399 399 id="unnamed-%s" % lid, 400 400 placeType=placeType, 401 certainty='certain',401 associationCertainty='certain', 402 402 ) 403 403 a = getattr(p, aid) … … 416 416 id="%s-%s" % (nid,lid), 417 417 placeType=placeType, 418 certainty=certainty,418 associationCertainty=certainty, 419 419 ) 420 420 a = getattr(p, aid) … … 432 432 id="%s-unlocated" % nid, 433 433 placeType=placeType, 434 certainty='certain',434 associationCertainty='certain', 435 435 ) 436 436 a = getattr(p, aid) PleiadesEntity/trunk/content/PlacefulAssociation.py
r676 r685 53 53 54 54 StringField( 55 name=' certainty',55 name='associationCertainty', 56 56 widget=SelectionWidget( 57 57 label="Certainty of association", 58 58 description="Certainty of association between locations and names", 59 label_msgid='PleiadesEntity_label_ certainty',60 description_msgid='PleiadesEntity_help_ certainty',59 label_msgid='PleiadesEntity_label_associationCertainty', 60 description_msgid='PleiadesEntity_help_associationCertainty', 61 61 i18n_domain='PleiadesEntity', 62 62 ), 63 enforceVocabulary=1,64 vocabulary=["certain", "less-certain", "uncertain"]63 vocabulary=NamedVocabulary("""AWMCPlacefulAssociationCertainty"""), 64 enforceVocabulary=1 65 65 ), 66 66 PleiadesEntity/trunk/i18n/generated.pot
r683 r685 84 84 #. Default: "Certainty of association between locations and names" 85 85 #: content\PlacefulAssociation.py 86 msgid "PleiadesEntity_help_associationCertainty" 87 msgstr "" 88 89 #. Default: "Certainty of association between locations and names" 90 #: content\PlacefulAssociation.py 86 91 msgid "PleiadesEntity_help_certainty" 87 92 msgstr "" … … 178 183 msgstr "" 179 184 185 #. Default: "Certainty of association" 186 #: content\PlacefulAssociation.py 187 msgid "PleiadesEntity_label_associationCertainty" 188 msgstr "" 189 180 190 #. Default: "Attestationconfidence" 181 191 #: content\TemporalAttestation.py PleiadesEntity/trunk/tests/LoadEntity.txt
r683 r685 213 213 >>> a.getPlaceType() 214 214 'settlement' 215 >>> a.get Certainty()215 >>> a.getAssociationCertainty() 216 216 'certain' 217 217 … … 267 267 >>> a.getPlaceType() 268 268 'fort' 269 >>> a.get Certainty()269 >>> a.getAssociationCertainty() 270 270 'certain' 271 271 … … 298 298 >>> a.getPlaceType() 299 299 'undefined' 300 >>> a.get Certainty()300 >>> a.getAssociationCertainty() 301 301 'certain' 302 302 PleiadesEntity/trunk/tests/Vocabularies.txt
r683 r685 51 51 >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 52 52 4 53 54 Test placeful association certainty vocabulary 55 ---------------------------------------------- 56 57 >>> v = vt.getVocabularyByName('AWMCPlacefulAssociationCertainty') 58 >>> v.Title() 59 'Levels of Certainty Assigned to Placeful Associations in AWMC Publications' 60 >>> len([obj for obj in v.contentValues() if obj.meta_type == "VdexTerm"]) 61 3 PleiadesEntity/trunk/version.txt
r683 r685 1 0.1 build 24 81 0.1 build 249
