當前位置: 首頁>>代碼示例>>Python>>正文


Python GetDataFolder.manage_delObjects方法代碼示例

本文整理匯總了Python中libDatabase.GetDataFolder.manage_delObjects方法的典型用法代碼示例。如果您正苦於以下問題:Python GetDataFolder.manage_delObjects方法的具體用法?Python GetDataFolder.manage_delObjects怎麽用?Python GetDataFolder.manage_delObjects使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在libDatabase.GetDataFolder的用法示例。


在下文中一共展示了GetDataFolder.manage_delObjects方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: ImportHelpFile

# 需要導入模塊: from libDatabase import GetDataFolder [as 別名]
# 或者: from libDatabase.GetDataFolder import manage_delObjects [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)
開發者ID:CoachCoen,項目名稱:ECL,代碼行數:9,代碼來源:MetaHelp.py

示例2: RemoveOldFolders

# 需要導入模塊: from libDatabase import GetDataFolder [as 別名]
# 或者: from libDatabase.GetDataFolder import manage_delObjects [as 別名]
def RemoveOldFolders(objHere, strWebsites):

    objMainDataFolder = GetDataFolder(objHere, 'MainDataFolder')

    if 'E3' in strWebsites:
        try:
            objMainDataFolder.manage_delObjects('E3')
        except:
            print "/Data/E3 not found, no need to delete"

    if 'MCI' in strWebsites:
        try:
            objMainDataFolder.manage_delObjects('MCI')
        except:
            print "/Data/MCI not found, no need to delete"
開發者ID:CoachCoen,項目名稱:ECL,代碼行數:17,代碼來源:MetaStart.py

示例3: CreateAdditionalProperties

# 需要導入模塊: from libDatabase import GetDataFolder [as 別名]
# 或者: from libDatabase.GetDataFolder import manage_delObjects [as 別名]
def CreateAdditionalProperties(objHere):
    """Any properties that haven't been done by the other code"""
    objMessages = GetDataFolder(objHere, "E3Messages")
    print objMessages.MessageCount
    try:
        objMessages.manage_delObjects('MessageCount')
    except:
        print "Couldn't delete MessageCount, probably didn't exist"

    try:
        objMessages.manage_addProperty('MessageCount', [], 'lines')
    except:
        print "E3Messages.MessageCount already defined. No need to add property"

    try:
        objMessages.manage_addProperty('MembersCount', 0, 'int')
    except:
        print "E3Messages.MembersCount already defined. No need to add property"

    objE3 = GetDataFolder(objHere, "E3Data")
    try:
        objE3.manage_addProperty('LatestInvoiceNumber', 0, 'int')
    except:
        print "E3Data.LatestInvoiceNumber already defined. No need to add property"

    for strProperty in ('DirectListMembers', 'TextDigestMembers', 'MIMEDigestMembers', 'NoMailMembers', 'DigestList'):
        try:
            objE3.manage_addProperty(strProperty, [], 'lines')
        except:
            print "E3Data.%s already defined. No need to add property" % strProperty

    for strProperty in ('DigestLength', 'LatestCartId', 'MembersCount'):
        try:
            objE3.manage_addProperty(strProperty, 0, 'int')
        except:
            print "E3Data.%s already defined. No need to add property" % strProperty

        objE3.LatestCartId = 1
開發者ID:CoachCoen,項目名稱:ECL,代碼行數:40,代碼來源:MetaStart.py


注:本文中的libDatabase.GetDataFolder.manage_delObjects方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。