示例#1
0
def manage_addTextIndexNG(self, id, extra, REQUEST=None, RESPONSE=None, URL3=None):
    """Add a new TextIndexNG """

    from Registry import StopwordsRegistry

    # the ZMI passes the name of a registered Stopwords object (usually the
    # language abreviation like 'en', 'de'. 

    if extra.use_stopwords:
        sw = StopwordsRegistry.get(extra.use_stopwords)
        extra.use_stopwords = sw

    return self.manage_addIndex(id, 'TextIndexNG2', extra, REQUEST, RESPONSE, URL3)