Ignore:
Timestamp:
16.11.2009 15:43:14 (3 years ago)
Author:
cmeier
Message:

zms-2.12.0-01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_zcatalogmanager.py

    r676 r792  
    8888  # return quoted search string. 
    8989  return s 
    90  
    91 # ------------------------------------------------------------------------------ 
    92 #  _zcatalogmanager.addVocabulary: 
    93 # ------------------------------------------------------------------------------ 
    94 def addVocabulary( self, cat): 
    95   from Products.ZCatalog import Vocabulary 
    96    
    97   #-- Remove Default-Vocabulary 
    98   ids = cat.objectIds( ['Vocabulary']) 
    99   if len( ids) > 0: 
    100     cat.manage_delObjects( ids) 
    101    
    102   #-- Add ISO 8859-1 Vocabulary 
    103   # see ZCatalogs with Umlauts 
    104   # http://www.zope.org/Members/strobl/HowTos/Iszcatalog 
    105   globbing = 1 
    106   splitter = "ISO_8859_1_Splitter" 
    107   voc = Vocabulary.Vocabulary( "Vocabulary", "Default vocabulary", globbing, splitter) 
    108   cat._setObject( voc.id, voc) 
    10990 
    11091# ------------------------------------------------------------------------------ 
     
    523504      else: 
    524505        zcatalog = obs[ 0] 
    525        
    526       #-- Add vocabulary 
    527       addVocabulary( self, zcatalog) 
    528506       
    529507      #-- Add lexicon 
Note: See TracChangeset for help on using the changeset viewer.