Changeset 144
- Timestamp:
- 05/06/09 15:31:11 (4 years ago)
- Location:
- collective.imstransport/trunk/collective/imstransport/utilities
- Files:
-
- 2 edited
-
ccreader.py (modified) (2 diffs)
-
ccwriter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
collective.imstransport/trunk/collective/imstransport/utilities/ccreader.py
r143 r144 66 66 67 67 # Check if item is in organizations section 68 import pdb; pdb.set_trace() 69 if hashref in [org[0] for org in orgdata]: 70 orgDict[hashref]['excludeFromNav'] == False 71 72 self.parseFile(file, objDict, hashref, id, path) 68 if hashref in [org for org in orgdata if org]: 69 objDict[hashref]['excludeFromNav'] = False 70 71 self.parseFile(context, file, objDict, hashref, id, path) 73 72 74 73 … … 78 77 79 78 80 def parseFile( file, objDict, hashref, id, path):79 def parseFile(self, context, file, objDict, hashref, id, path): 81 80 """ parse a file object and add data to it """ 82 81 objDict[hashref]['file'] = file 83 82 objDict[hashref]['id'] = id 84 83 objDict[hashref]['path'] = path 85 objDict[hashref]['type'] = self.determineType(context, hashref, ccreader,objDict, file)86 87 88 def determineType(self, context, hashref, ccreader,objDict, filename):84 objDict[hashref]['type'] = self.determineType(context, hashref, objDict, file) 85 86 87 def determineType(self, context, hashref, objDict, filename): 89 88 """ Determine the type of the incoming object """ 90 89 -
collective.imstransport/trunk/collective/imstransport/utilities/ccwriter.py
r143 r144 144 144 else: 145 145 data = '' 146 146 147 if self.destination: 147 148 self.destination.writeFile(path, data)
Note: See TracChangeset
for help on using the changeset viewer.
