コード例 #1
0
ファイル: test.py プロジェクト: hofmannedv/sourceforge-stats
		if projectId == sfproject.getProjectId():
			found = True
			break

	if not found:
		# create a new project list entry
		sfproject = SfProject(projectName, projectId)

	# set up dependency object	
	dependency = Dependency()
	dependency.setTimePeriodStart(projectTimePeriod[0])
	dependency.setTimePeriodEnd(projectTimePeriod[1])
	dependency.setVersion(projectVersion)
	dependency.setUrl(projectUrl)
	for dep in projectDependencies:
		dependency.addDependency(dep)
	
	sfproject.addProjectDependencyEntry(dependency)
	if not found:
		projectList.append(sfproject)

testEnde1 = time.clock()		
		
#print "number of projects: ", len(projectList)
#for sfproject in projectList:
	#print "--"
	#print "name:    ", sfproject.getProjectName()
	#print "id:      ", sfproject.getProjectId()
	#pdl = sfproject.getProjectDependencyList()
	#for listItem in pdl:
		#print "deps:    ", listItem.getTimePeriodStart(), "-", listItem.getTimePeriodEnd(), ": ", listItem.getDependencies()