コード例 #1
0
ファイル: unit_tester.py プロジェクト: junion/GalaxyWinPython
	if how is not None:
	    print "One of --as_hub or --as_server must be specified."
	    Usage()
	how = key
    elif key == "--service_type":
	stypes.append(value)
    elif key == "--retry":
	retry = 1
    elif key == "--ignore_reinitialize":
	ignore_reinitialize = 1
    elif key == "--frames":
	try:
	    fp = open(value, "r")
	    s = fp.read()
	    fp.close()
	    f_list, ignore = Galaxy._read_irp_value(s)
	    if type(f_list) is not type([]):
		print "Couldn't parse frame file (should be list of frames). Skipping."
	    else:
		for e in f_list:
		    if Galaxy.GetObjectType(e) is not Galaxy.GAL_FRAME:
			print "Element of frame file list is not frame. Skipping."
		    else:
			frame_list.append(e.PPrint())		
	except IOError:
	    print "Couldn't read frame file. Skipping."
if how is None:
    print "One of --as_hub or --as_server must be specified."
    Usage()

if (how == "--as_hub") and stypes:
コード例 #2
0
ファイル: MIT_log.py プロジェクト: junion/GalaxyWinPython
    def XmlizeList(self, key, value):
	theList, ignore = Galaxy._read_irp_value(value)
	return self.XmlizeListObject(key, theList)