本文整理汇总了Python中libDatabase.GetDataFolder.objectIds方法的典型用法代码示例。如果您正苦于以下问题:Python GetDataFolder.objectIds方法的具体用法?Python GetDataFolder.objectIds怎么用?Python GetDataFolder.objectIds使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libDatabase.GetDataFolder
的用法示例。
在下文中一共展示了GetDataFolder.objectIds方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ImportHelpFile
# 需要导入模块: from libDatabase import GetDataFolder [as 别名]
# 或者: from libDatabase.GetDataFolder import objectIds [as 别名]
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: CreateE3MessageIndex
# 需要导入模块: from libDatabase import GetDataFolder [as 别名]
# 或者: from libDatabase.GetDataFolder import objectIds [as 别名]
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