示例#1
0
文件: MetaHelp.py 项目: CoachCoen/ECL
def ImportHelpFile(objHere):
    objHelpFolder = GetDataFolder(objHere, "E3Help")
    for strId in objHelpFolder.objectIds("E3Help"):
        objHelpFolder.manage_delObjects(strId)
    ReadHelp(objHere)
    ReindexOne(objHere, "E3Help")
    BuildRules(objHere)
示例#2
0
def CreateE3MessageIndex(objHere):
    intDone = 0
    objMessages = GetDataFolder(objHere, 'E3Messages')
    if not 'Catalogue' in objMessages.objectIds():
        BuildE3MessageCatalogue(objMessages)
    for objYear in objMessages.objectValues('Folder'):
        for objMonth in objYear.objectValues('Folder'):
            print
            print objMonth.id
            for objThread in objMonth.objectValues('Folder'):
                objMessages.Catalogue.catalog_object(objThread)
                print "|",
                intDone += 1
                for objMessage in objThread.objectValues('Folder'):
                    objMessages.Catalogue.catalog_object(objMessage)
                    print "-",
                    intDone += 1
    print
    print "Done: %s" % intDone