DictionDB: don't change gramps_ids; mediaref: to_struct['rect'] returns None for (0,0,0,0)
svn: r23311
This commit is contained in:
parent
6f057a6586
commit
5545f37edc
@ -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):
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user