本文整理匯總了Python中ZenModelRM.ZenModelRM.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python ZenModelRM.__init__方法的具體用法?Python ZenModelRM.__init__怎麽用?Python ZenModelRM.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ZenModelRM.ZenModelRM
的用法示例。
在下文中一共展示了ZenModelRM.__init__方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, deviceId='', compPath='', deviceOrganizer='',
recurse=False, sequence=0, title=None, buildRelations=True):
ZenModelRM.__init__(self, id, title, buildRelations)
self.deviceId = deviceId
self.compPath = compPath
self.deviceOrganizer = deviceOrganizer
self.recurse = recurse
self.sequence = sequence
示例2: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, userSettings, managedObject):
userid = userSettings.getId()
ZenModelRM.__init__(self, userid)
self.role = userSettings.defaultAdminRole
self.id = userid
managedObject = managedObject.primaryAq()
managedObject.adminRoles._setObject(userid, self)
self.userSetting.addRelation(userSettings)
managedObject.manage_setLocalRoles(userid, (self.role,),)
managedObject.index_object()
示例3: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, description = ''):
"""
@param id: Name of this organizer
@type id: string
@param description: A decription of this organizer
@type description: string
@rtype: Organizer
"""
ZenModelRM.__init__(self, id)
self.description = description
示例4: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, title="", prodName=None,
productKey=None, partNumber="",description=""):
ZenModelRM.__init__(self, id, title)
# XXX per a comment in #406 from Erik, we may want to get rid
# of prodName and only use productKey, to avoid redundancy
if productKey:
self.productKeys = [productKey]
elif prodName:
self.productKeys = [prodName]
else:
# When adding manually through the gui or via device discovery if
# the device model is not already in the system, both prodName
# and productKey will be None
self.productKeys = [id]
self.name = prodName if prodName is not None else id
self.partNumber = partNumber
self.description = description
示例5: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, title=None):
ZenModelRM.__init__(self, id, title)
from ZVersion import VERSION
self.version = "Zenoss " + VERSION
示例6: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id):
ZenModelRM.__init__(self, id)
self.start = time.time()
self.enabled = False
示例7: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, title = None, text=None, content_type='text/html'):
ZenModelRM.__init__(self, id);
self._template = ZopePageTemplate(id, text, content_type)
self.title = title
示例8: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, title=None, buildRelations=True):
ZenModelRM.__init__(self, id, title, buildRelations)
示例9: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, id, title=None, buildRelations=True):
ZenModelRM.__init__(self, id, title, buildRelations)
self.prevCollectorPerDevice = OOBTree()
示例10: __init__
# 需要導入模塊: from ZenModelRM import ZenModelRM [as 別名]
# 或者: from ZenModelRM.ZenModelRM import __init__ [as 別名]
def __init__(self, newId, collectionId='', graphDefId='', sequence=0,
title=None, buildRelations=True):
ZenModelRM.__init__(self, newId, title, buildRelations)
self.collectionId = collectionId
self.graphDefId = graphDefId
self.sequence = sequence