本文整理匯總了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