def fromFormFieldsDictionary(self, databaseSession, dictionary):
		from svnrepositorytree import SvnRepositoryTree
		from gitrepositorytree import GitRepositoryTree
		
		if dictionary["type"] == "none":
			self.setNone(databaseSession)
		elif dictionary["type"] == "svn":
			repositoryUrl = dictionary["url"]
			svnRepositoryTree = SvnRepositoryTree()
			svnRepositoryTree.fromFormFieldsDictionary(databaseSession, dictionary)
			self.setSvnRepositoryTree(databaseSession, repositoryUrl, svnRepositoryTree)
		elif dictionary["type"] == "git":
			repositoryUrl = dictionary["url"]
			gitRepositoryTree = GitRepositoryTree()
			gitRepositoryTree.fromFormFieldsDictionary(databaseSession, dictionary)
			self.setGitRepositoryTree(databaseSession, repositoryUrl, gitRepositoryTree)
		elif dictionary["type"] == "raw":
			raise NotImplementedError()
		else:
			raise ValueError()
		
		return self