Ignore:
Timestamp:
2 Apr 2009, 11:20:07 (16 years ago)
Author:
uli
Message:

Update tests.

Location:
waeup/branches/ulif-rewrite/src/waeup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/README.txt

    r4046 r4048  
    5555Now we can trigger the export::
    5656
    57   >>> exporter.export(u)
     57  >>> exporter.export()
    5858  <cStringIO.StringO object at 0x...>
    5959
     
    6464  >>> from waeup.interfaces import IWAeUPXMLExporter
    6565  >>> exporter = IWAeUPXMLExporter(u)
    66   >>> f = exporter.export(u)
     66  >>> f = exporter.export()
    6767  >>> f
    6868  <cStringIO.StringO object at 0x...>
  • waeup/branches/ulif-rewrite/src/waeup/utils/importexport.txt

    r4046 r4048  
    5050All exporters provide an ``export(<obj>)`` method::
    5151
    52     >>> result = exporter.export(myfaculty)
     52    >>> result = exporter.export()
    5353
    5454The result is an object of type StringIO. We therefore use its
     
    6464We can also let the results be written to a file::
    6565
    66     >>> result = exporter.export(myfaculty, 'myexport.xml')
     66    >>> result = exporter.export('myexport.xml')
    6767    >>> print open('myexport.xml', 'rb').read()
    6868    <?xml version="1.0" encoding="utf-8" ?>
Note: See TracChangeset for help on using the changeset viewer.