本文整理匯總了Python中cairis.data.CairisDAO.CairisDAO類的典型用法代碼示例。如果您正苦於以下問題:Python CairisDAO類的具體用法?Python CairisDAO怎麽用?Python CairisDAO使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了CairisDAO類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
def __init__(self, session_id):
CairisDAO.__init__(self, session_id)
self.attr_dict = {
'Confidentiality': cairis.core.armid.C_PROPERTY,
'Integrity': cairis.core.armid.I_PROPERTY,
'Availability': cairis.core.armid.AV_PROPERTY,
'Accountability': cairis.core.armid.AC_PROPERTY,
'Anonymity': cairis.core.armid.AN_PROPERTY,
'Pseudonymity': cairis.core.armid.PAN_PROPERTY,
'Unlinkability': cairis.core.armid.UNL_PROPERTY,
'Unobservability': cairis.core.armid.UNO_PROPERTY
}
self.rev_attr_dict = {}
for key, value in self.attr_dict.items():
self.rev_attr_dict[value] = key
示例2: __init__
def __init__(self, session_id):
"""
:raise CairisHTTPError:
"""
CairisDAO.__init__(self, session_id)
self.prop_dict = {0: "None", 1: "Low", 2: "Medium", 3: "High"}
self.attr_dict = {
"Confidentiality": cairis.core.armid.C_PROPERTY,
"Integrity": cairis.core.armid.I_PROPERTY,
"Availability": cairis.core.armid.AV_PROPERTY,
"Accountability": cairis.core.armid.AC_PROPERTY,
"Anonymity": cairis.core.armid.AN_PROPERTY,
"Pseudonymity": cairis.core.armid.PAN_PROPERTY,
"Unlinkability": cairis.core.armid.UNL_PROPERTY,
"Unobservability": cairis.core.armid.UNO_PROPERTY,
}
self.rev_attr_dict = dict()
self.rev_prop_dict = dict()
for key, value in self.attr_dict.items():
self.rev_attr_dict[value] = key
for key, value in self.prop_dict.items():
self.rev_prop_dict[value] = key
示例3: __init__
def __init__(self, session_id):
CairisDAO.__init__(self, session_id)
b = Borg()
self.image_dir = os.path.join(b.uploadDir, 'images')