本文整理汇总了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')