Changeset 4048
- Timestamp:
- 2 Apr 2009, 11:20:07 (16 years ago)
- Location:
- waeup/branches/ulif-rewrite/src/waeup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/README.txt
r4046 r4048 55 55 Now we can trigger the export:: 56 56 57 >>> exporter.export( u)57 >>> exporter.export() 58 58 <cStringIO.StringO object at 0x...> 59 59 … … 64 64 >>> from waeup.interfaces import IWAeUPXMLExporter 65 65 >>> exporter = IWAeUPXMLExporter(u) 66 >>> f = exporter.export( u)66 >>> f = exporter.export() 67 67 >>> f 68 68 <cStringIO.StringO object at 0x...> -
waeup/branches/ulif-rewrite/src/waeup/utils/importexport.txt
r4046 r4048 50 50 All exporters provide an ``export(<obj>)`` method:: 51 51 52 >>> result = exporter.export( myfaculty)52 >>> result = exporter.export() 53 53 54 54 The result is an object of type StringIO. We therefore use its … … 64 64 We can also let the results be written to a file:: 65 65 66 >>> result = exporter.export( myfaculty,'myexport.xml')66 >>> result = exporter.export('myexport.xml') 67 67 >>> print open('myexport.xml', 'rb').read() 68 68 <?xml version="1.0" encoding="utf-8" ?>
Note: See TracChangeset for help on using the changeset viewer.