def _image_member_update(context, memb_ref, values, session=None):
 _drop_protected_attrs(models.ImageMember, values)
 values['deleted'] = False
 values.setdefault('can_share', False)
 memb_ref.update(values)
 memb_ref.save(session=session)
 return memb_ref

def _image_member_update ( context , memb_ref , values , session = None ) : _drop_protected_attrs ( models . ImageMember , values ) values [ 'deleted' ] = False values . setdefault ( 'can_share' , False ) memb_ref . update ( values ) memb_ref . save ( session = session ) return memb_ref
apply supplied dictionary of values to a member object .