/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/xml_serializer.py

  • Committer: Jelmer Vernooij
  • Date: 2007-09-16 19:29:00 UTC
  • mfrom: (2823 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2824.
  • Revision ID: jelmer@samba.org-20070916192900-fph1i2wsytberyyl
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
class Serializer(object):
53
53
    """Abstract object serialize/deserialize"""
 
54
 
54
55
    def write_inventory(self, inv, f):
55
56
        """Write inventory to a file"""
56
 
        elt = self._pack_inventory(inv)
57
 
        self._write_element(elt, f)
 
57
        raise NotImplementedError(self.write_inventory)
58
58
 
59
59
    def write_inventory_to_string(self, inv):
60
 
        return tostring(self._pack_inventory(inv)) + '\n'
 
60
        raise NotImplementedError(self.write_inventory_to_string)
61
61
 
62
62
    def read_inventory_from_string(self, xml_string):
63
63
        try: