Changeset 4057 for waeup/branches
- Timestamp:
- 3 Apr 2009, 10:44:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/utils/importexport.py
r4050 r4057 78 78 79 79 def doImport(self, filepath): 80 xml = open(filepath, 'rb').read() 80 xml = None 81 if isinstance(filepath, basestring): 82 xml = open(filepath, 'rb').read() 83 else: 84 xml = filepath.read() 81 85 obj = zope.xmlpickle.loads(xml) 82 86 return obj
Note: See TracChangeset for help on using the changeset viewer.