Changeset 665
- Timestamp:
- 03/02/07 17:26:02 (2 years ago)
- Files:
-
- PleiadesEntity/trunk/DEPENDENCIES.txt (modified) (1 diff)
- PleiadesEntity/trunk/Extensions/Install.py (modified) (1 diff)
- PleiadesEntity/trunk/content/PlacefulAssociation.py (modified) (3 diffs)
- PleiadesEntity/trunk/i18n/generated.pot (modified) (5 diffs)
- PleiadesEntity/trunk/models/PleiadesEntity.zargo (modified) (previous)
- PleiadesEntity/trunk/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesEntity/trunk/DEPENDENCIES.txt
r602 r665 8 8 http://codespeak.net/lxml/index.html 9 9 10 - AT Vocabulary Manager: 11 http://plone.org/products/atvocabularymanager 12 tested with ATVM svn trunk r7582 13 PleiadesEntity/trunk/Extensions/Install.py
r647 r665 72 72 install_subskin(self, out, GLOBALS) 73 73 74 75 # Create vocabularies in vocabulary lib 76 from Products.ATVocabularyManager.config import TOOL_NAME as ATVOCABULARYTOOL 77 atvm = getToolByName(self, ATVOCABULARYTOOL) 78 vocabmap = {'AWMCPlaceTypes.xml': ('SimpleVocabulary', 'SimpleVocabularyTerm'), 79 } 80 for vocabname in vocabmap.keys(): 81 if not vocabname in atvm.contentIds(): 82 atvm.invokeFactory(vocabmap[vocabname][0], vocabname) 83 84 if len(atvm[vocabname].contentIds()) < 1: 85 if vocabmap[vocabname][0] == "VdexVocabulary": 86 vdexpath = os.path.join( 87 package_home(GLOBALS), 'data', '%s.vdex' % vocabname) 88 if not (os.path.exists(vdexpath) and os.path.isfile(vdexpath)): 89 print >>out, 'No VDEX import file provided at %s.' % vdexpath 90 continue 91 try: 92 #read data 93 f = open(vdexpath, 'r') 94 data = f.read() 95 f.close() 96 except: 97 print >>out, 'Problems while reading VDEX import file provided at %s.' % vdexpath 98 continue 99 atvm[vocabname].importXMLBinding(data) 100 else: 101 pass 74 102 75 103 # try to call a workflow install method PleiadesEntity/trunk/content/PlacefulAssociation.py
r649 r665 31 31 from AccessControl import ClassSecurityInfo 32 32 from Products.Archetypes.atapi import * 33 from Products.ATVocabularyManager.namedvocabulary import NamedVocabulary 33 34 from Products.PleiadesEntity.config import * 34 35 … … 40 41 StringField( 41 42 name='placeType', 42 default="unknown",43 43 index="KeywordIndex", 44 44 widget=SelectionWidget( … … 47 47 i18n_domain='PleiadesEntity', 48 48 ), 49 enforceVocabulary=1, 50 vocabulary=['aqueduct', 'bath', 'bay', 'bridge', 'canal', 'cape', 'cave', 'cemetery', 'centuriation', 'church', 'coast', 'dam', 'estate', 'estuary', 'findspot', 'forest', 'fort', 'hill', 'island', 'lighthouse', 'mine', 'mountain', 'oasis', 'pass', 'people', 'plain', 'port', 'production', 'region', 'reservoir', 'ridge', 'river', 'road', 'salt-marsh', 'settlement', 'settlement-modern', 'spring', 'station', 'temple', 'tumulus', 'undefined', 'unknown', 'unlocated', 'valley', 'wall', 'water-inland', 'water-open', 'well', 'wheel', 'whirlpool'] 49 vocabulary=NamedVocabulary("""AWMCPlaceTypes.xml"""), 50 default="unknown", 51 enforceVocabulary=1 51 52 ), 52 53 PleiadesEntity/trunk/i18n/generated.pot
r581 r665 82 82 msgstr "" 83 83 84 #. Default: "Certainty of association between locations and names" 85 #: content\PlacefulAssociation.py 86 msgid "PleiadesEntity_help_certainty" 87 msgstr "" 88 84 89 #. Default: "A unique identifier for this name, assigned by the Pleiades editorial board." 85 90 #: content\GeographicName.py … … 175 180 #. Default: "Certainty" 176 181 #: content\TemporalAttestation.py 182 #: content\PlacefulAssociation.py 177 183 msgid "PleiadesEntity_label_certainty" 178 184 msgstr "" … … 206 212 #. Default: "Locations" 207 213 #: content\Place.py 214 #: content\PlacefulAssociation.py 208 215 msgid "PleiadesEntity_label_locations" 209 216 msgstr "" … … 270 277 #. Default: "Names" 271 278 #: content\Place.py 279 #: content\PlacefulAssociation.py 272 280 msgid "PleiadesEntity_label_names" 273 281 msgstr "" … … 275 283 #. Default: "Place Type" 276 284 #: content\Place.py 285 #: content\PlacefulAssociation.py 277 286 msgid "PleiadesEntity_label_placeType" 278 287 msgstr "" PleiadesEntity/trunk/version.txt
r650 r665 1 0.1 build 2 371 0.1 build 240
