Example #1
0
 def object_extend(self,
                   obj: Media,
                   args: Dict,
                   locale: GrampsLocale = glocale) -> Media:
     """Extend media attributes as needed."""
     if "profile" in args:
         obj.profile = get_media_profile_for_object(self.db_handle, obj,
                                                    args["profile"])
     if "extend" in args:
         obj.extended = get_extended_attributes(self.db_handle, obj, args)
     return obj