Changeset 135 for installers/windows/src/eduCommons/src/collective.imstransport/collective/imstransport/Manifest.py
- Timestamp:
- 04/21/09 11:15:10 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
installers/windows/src/eduCommons/src/collective.imstransport/collective/imstransport/Manifest.py
r55 r135 39 39 import md5 40 40 import os 41 from App import config 41 42 42 43 … … 53 54 ('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'),] 54 55 schema_locations = ['http://www.imsglobal.org/xsd/imscp_v1p1 imscp_v1p2.xsd',] 55 schema_files = [( 'collective/imstransport/IMS', 'imscp_v1p2.xsd')]56 schema_files = [(os.sep.join(['collective.imstransport','collective','imstransport','IMS']), 'imscp_v1p2.xsd')] 56 57 57 58 … … 60 61 self.document = None 61 62 self.destination = None 63 self.ims_path = '' 62 64 self.manifest_node = None 63 64 for path in os.environ['PYTHONPATH'].split(':'): 65 if 'collective.imstransport' in path: 66 self.ims_path = path 67 break 68 else: 69 self.ims_path = '' 70 71 65 66 cfg = config.getConfiguration() 67 cfglist = cfg.instancehome.split(os.sep)[:-2] 68 cfglist += ['src'] 69 self.ims_path = os.sep.join(cfglist) 72 70 73 71 def setWriterType(self, wtype):
