本文整理汇总了Python中henmanager.HenManager.getExperimentEntries方法的典型用法代码示例。如果您正苦于以下问题:Python HenManager.getExperimentEntries方法的具体用法?Python HenManager.getExperimentEntries怎么用?Python HenManager.getExperimentEntries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类henmanager.HenManager
的用法示例。
在下文中一共展示了HenManager.getExperimentEntries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from henmanager import HenManager [as 别名]
# 或者: from henmanager.HenManager import getExperimentEntries [as 别名]
def main():
form = cgi.FieldStorage()
manager = HenManager()
manager.initLogging()
print "Cache-Control: no-store, no-cache, must-revalidate"
print "Content-type: text/xml\n"
print "<experiments>"
experiments = manager.getExperimentEntries()
for experimentID in experiments.keys():
#segments = experiment.split("/")
#Bfilename = segments[len(segments) - 1]
# slice off the '.xml' extension
#fileid = filename[:-4]
print "\t<experiment id=\"" + experimentID + "\"/>"
print "</experiments>"