Changeset 792 for ZMS/trunk/_zcatalogmanager.py
- Timestamp:
- 16.11.2009 15:43:14 (3 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/_zcatalogmanager.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_zcatalogmanager.py
r676 r792 88 88 # return quoted search string. 89 89 return s 90 91 # ------------------------------------------------------------------------------92 # _zcatalogmanager.addVocabulary:93 # ------------------------------------------------------------------------------94 def addVocabulary( self, cat):95 from Products.ZCatalog import Vocabulary96 97 #-- Remove Default-Vocabulary98 ids = cat.objectIds( ['Vocabulary'])99 if len( ids) > 0:100 cat.manage_delObjects( ids)101 102 #-- Add ISO 8859-1 Vocabulary103 # see ZCatalogs with Umlauts104 # http://www.zope.org/Members/strobl/HowTos/Iszcatalog105 globbing = 1106 splitter = "ISO_8859_1_Splitter"107 voc = Vocabulary.Vocabulary( "Vocabulary", "Default vocabulary", globbing, splitter)108 cat._setObject( voc.id, voc)109 90 110 91 # ------------------------------------------------------------------------------ … … 523 504 else: 524 505 zcatalog = obs[ 0] 525 526 #-- Add vocabulary527 addVocabulary( self, zcatalog)528 506 529 507 #-- Add lexicon
Note: See TracChangeset
for help on using the changeset viewer.
