Commit f61b86d4 authored by Jim Fulton's avatar Jim Fulton

Cosmetic changes to generated XML.

parent 8dbba0a3
...@@ -92,6 +92,7 @@ from cPickle import Pickler, Unpickler ...@@ -92,6 +92,7 @@ from cPickle import Pickler, Unpickler
import Shared.DC.xml.ppml import Shared.DC.xml.ppml
ppml=Shared.DC.xml.ppml ppml=Shared.DC.xml.ppml
TupleType=type(()) TupleType=type(())
from base64 import encodestring
def save_record(self, tag, data): def save_record(self, tag, data):
file=self.file file=self.file
...@@ -165,11 +166,12 @@ class ExportImport: ...@@ -165,11 +166,12 @@ class ExportImport:
f=StringIO(p) f=StringIO(p)
u=q(f) u=q(f)
id=ppml.u64(oid) id=ppml.u64(oid)
aka=encodestring(oid)[:-1]
u.idprefix=str(id)+'.' u.idprefix=str(id)+'.'
p=u.load().__str__(4) p=u.load().__str__(4)
if f.tell() < len: if f.tell() < len:
p=p+u.load().__str__(4) p=p+u.load().__str__(4)
String=' <record id="%s">\n%s </record>\n' % (id, p) String=' <record id="%s" aka="%s">\n%s </record>\n' % (id, aka, p)
return String return String
def exportXML(self, oid, file=None): def exportXML(self, oid, file=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment