DictionDB: don't change gramps_ids; mediaref: to_struct['rect'] returns None for (0,0,0,0)

svn: r23311
This commit is contained in:
Doug Blank 2013-10-11 17:41:06 +00:00
parent 6f057a6586
commit 5545f37edc
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ class DictionaryDb(DbWriteBase, DbReadBase):
format.
"""
pattern_match = re.match(r"(.*)%[0 ](\d+)[diu]$", id_pattern)
if pattern_match:
if False: # pattern_match:
str_prefix = pattern_match.group(1)
nr_width = int(pattern_match.group(2))
def closure_func(gramps_id):

View File

@ -95,7 +95,7 @@ class MediaRef(SecondaryObject, PrivacyBase, CitationBase, NoteBase, RefBase,
"note_list": NoteBase.to_struct(self),
"attribute_list": AttributeBase.to_struct(self),
"ref": RefBase.to_struct(self),
"rect": self.rect}
"rect": self.rect if self.rect != (0,0,0,0) else None}
def unserialize(self, data):
"""