本文整理汇总了Python中DataManager.DataManager.setting方法的典型用法代码示例。如果您正苦于以下问题:Python DataManager.setting方法的具体用法?Python DataManager.setting怎么用?Python DataManager.setting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager.DataManager
的用法示例。
在下文中一共展示了DataManager.setting方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: len
# 需要导入模块: from DataManager import DataManager [as 别名]
# 或者: from DataManager.DataManager import setting [as 别名]
JobSkillRequirement.SkillCode=?
""", [skill_code] )
job_names = []
for j in jobs:
job_names.append(j['Name'])
row.append( len(job_names) )
row.append( ", ".join(job_names) )
row.append( job_usage['ValSum'] )
partner_usage = DataManager.getRow( "SELECT COUNT(*) AS Cnt, SUM(Value) AS ValSum FROM PartnerSkillRequirement WHERE SkillCode=?", [skill_code] )
partners = DataManager.getRows( """
SELECT
Partner.Name
FROM
Partner
INNER JOIN PartnerSkillRequirement ON PartnerSkillRequirement.PartnerCode = Partner.PartnerCode
WHERE
PartnerSkillRequirement.SkillCode=?
""", [skill_code] )
row.append(job_usage['Cnt'])
row.append(job_usage['ValSum'])
csvOut.append(row)
print csvOut
csvOutFile = open( DataManager.setting('dbReportOutCsvPath'), 'wb' )
wr = csv.writer( csvOutFile, quoting=csv.QUOTE_ALL )
for row in csvOut:
wr.writerow(row)
csvOutFile.close()