Changeset 116 for Xml/Validator/WebApp/validator
- Timestamp:
- 10/18/07 10:51:31 (15 months ago)
- Files:
-
- 1 modified
-
Xml/Validator/WebApp/validator/OmeValidator.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Xml/Validator/WebApp/validator/OmeValidator.py
r93 r116 139 139 140 140 """ 141 The namespace define in the OME element of the OME-XML document 142 """ 143 thePrefix = None 144 145 """ 141 146 Create the message lists for this instance of the report object 142 147 """ … … 262 267 # choose the schema source 263 268 # assume the new schema 264 theSchemaFile = "ome-2007-07 .xsd"269 theSchemaFile = "ome-2007-07-V2.xsd" 265 270 # if old schema 266 271 if self.theNamespace == "http://www.openmicroscopy.org/XMLschemas/OME/FC/ome.xsd": … … 523 528 # a prefex is being used 524 529 self.thePrefix = name[:-4] 525 print "Prefix : %s" % self.thePrefix526 530 try: 527 531 self.theNamespace = attribs.getValue("xmlns" + ':' + self.thePrefix) … … 632 636 self.omePlanesCount = self.omePlanesCount + 1 633 637 638 if name[-12:] == "ManufactSpec": 639 try: 640 # look for the serial number 641 theSerial = int(attribs.getValue("SerialNumber")) 642 except KeyValue: 643 pass 644 if theSerial is None or len(theSerial) == 0: 645 self.warningList.append(ParseMessage(None, None, None, "OME","", "Missing or empty SerialNumber in ManufactSpec")) 646 634 647 self.domify(name, attribs) 635 648 … … 679 692 # a prefex is being used 680 693 self.thePrefix = name[:-4] 681 print "Prefix : %s" % self.thePrefix682 694 try: 683 695 # pull the namespace for prefix out of the OME element … … 711 723 for aFilename in ["samples/4d2wOME.tif", "samples/4d2wOME-fixed.tif", 712 724 "samples/4d2wOME-fixed-updated.tif", "samples/blank.tif", 713 "samples/ome.xsd" ]:725 "samples/ome.xsd", "samples/4d2wOME-EdExtra.tif"]: 714 726 print "============ XML file %s ============ " % aFilename 715 727 print XmlReport.validateTiff(aFilename)
