7209: Custom key/value (data item) on Database difference report: Change datamap representation to allow Database Difference Report to work

This commit is contained in:
Doug Blank 2013-11-18 06:27:05 -05:00
parent aad7b15a47
commit 4f29c6e464
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ class Citation(MediaBase, NoteBase, IndirectCitationBase,
"source_handle": self.source_handle, # 5
"note_list": NoteBase.to_struct(self), # 6
"media_list": MediaBase.to_struct(self), # 7
"datamap": self.datamap, # 8
"datamap": [(key,self.datamap[key]) for key in self.datamap.keys()],# 8
"change": self.change, # 9
"private": self.private} # 10

View File

@ -100,7 +100,7 @@ class Source(MediaBase, NoteBase, IndirectCitationBase, PrimaryObject):
"media_list": MediaBase.to_struct(self),
"abbrev": cuni(self.abbrev),
"change": self.change,
"datamap": {"dict": self.datamap},
"datamap": [(key,self.datamap[key]) for key in self.datamap.keys()],# 8
"reporef_list": [rr.to_struct() for rr in self.reporef_list],
"private": self.private}