当前位置: 首页>>代码示例>>Python>>正文


Python GetDataFolder.LatestCartId方法代码示例

本文整理汇总了Python中libDatabase.GetDataFolder.LatestCartId方法的典型用法代码示例。如果您正苦于以下问题:Python GetDataFolder.LatestCartId方法的具体用法?Python GetDataFolder.LatestCartId怎么用?Python GetDataFolder.LatestCartId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在libDatabase.GetDataFolder的用法示例。


在下文中一共展示了GetDataFolder.LatestCartId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: CreateAdditionalProperties

# 需要导入模块: from libDatabase import GetDataFolder [as 别名]
# 或者: from libDatabase.GetDataFolder import LatestCartId [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

示例2: GetNextCartId

# 需要导入模块: from libDatabase import GetDataFolder [as 别名]
# 或者: from libDatabase.GetDataFolder import LatestCartId [as 别名]
def GetNextCartId(objHere):
    objData = GetDataFolder(objHere, 'E3Data')
    intNextCartId = objData.LatestCartId + 1
    objData.LatestCartId = intNextCartId
    return intNextCartId
开发者ID:CoachCoen,项目名称:ECL,代码行数:7,代码来源:libGeneral.py


注:本文中的libDatabase.GetDataFolder.LatestCartId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。