Changeset 295 for collective.imstransport/branches
- Timestamp:
- 06/17/09 10:43:15 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
collective.imstransport/branches/mini_to_ele/collective/imstransport/utilities/imscc/ccreader.py
r241 r295 1 from elementtree importElementTree1 from lxml import etree as ElementTree 2 2 from collective.imstransport.IMS_exceptions import ManifestError 3 3 from configcc import LOM_namespace, LOM_IMSCC_namespace, WL_namespace, IMSCP_namespace … … 8 8 def parseManifest(self, manifest): 9 9 """ parse the manifest """ 10 import urllib 11 urlscraper = urllib.urlopen(IMSCP_namespace + '.xsd') 12 schema_imscp = urlscraper.read() 13 schema_root = ElementTree.XML(schema_imscp) 14 schema = ElementTree.XMLSchema(schema_root) 15 parser = ElementTree.XMLParser(schema = schema) 10 16 return ElementTree.XML(manifest) 11 17
