aabbe0bb988684142b46265bd41e3e6e29a2f3c1
mmaddren
  Wed Jun 22 16:16:21 2011 -0700
updated directory structure to fit library design goal. modify PYTHONPATH to now point at python/ucscgenomics/lib instead of python/ucscgenomics/rafile
diff --git python/ucscgenomics/cvValidate/cvValidate python/ucscgenomics/cvValidate/cvValidate
new file mode 100755
index 0000000..7a2b170
--- /dev/null
+++ python/ucscgenomics/cvValidate/cvValidate
@@ -0,0 +1,30 @@
+#!/hive/groups/encode/dcc/bin/python
+import sys
+from cvfile.CvFile import *
+
+class validate(object):
+	"""validation script that calls cv.validate and then puts all its errors into a list"""
+
+	def __init__(self):
+		self.errors = list()
+		self.cv = CvFile(sys.argv[1], self.addtoerrs)	
+		self.cv.validate()
+		
+		for err in self.errors:
+			print err
+			
+	def addtoerrs(self, exception):
+		self.errors.append(exception)
+
+if __name__ == '__main__':
+    val = validate()
+	
+	
+#for entry in cv.itervalues():
+#    try:
+##        entry.validate(cv)
+#   except CvError as e:
+#        errors.append(e)
+	
+
+