Comment 1 for bug 448780

Revision history for this message
yuppie (yuppie3) wrote :

'_exportNode' and '_importNode' solve the same task in XML adapters and pure node adapters. That's why those methods have the same name in both kinds of adapters. But they are used differently: XML adapters call them from '_exportBody' and '_importBody', pure node adapters use them for the 'node' property.

XML adapters need to export and import 2 different nodes for each object: One simple node that's part of the parent's XML file. And one complete node that's stored in the object's own XML file.

Only pure node adapters should redefine the 'node' property.