def _apply_groups_to_backend(cls, obj, options, backend, clone):
        "Apply the groups to a single specified backend"
        obj_handle = obj
        if options is None:
            if clone:
                obj_handle = obj.map(lambda x: x.clone(id=None))
            else:
                obj.map(lambda x: setattr(x, 'id', None))
        elif clone:
            obj_handle = obj.map(lambda x: x.clone(id=x.id))

        return StoreOptions.set_options(obj_handle, options, backend=backend)
def _apply_groups_to_backend ( cls , obj , options , backend , clone ) : obj_handle = obj if options is None : if clone : obj_handle = obj . map ( lambda x : x . clone ( id = None ) ) else : obj . map ( lambda x : setattr ( x , 'id' , None ) ) elif clone : obj_handle = obj . map ( lambda x : x . clone ( id = x . id ) ) return StoreOptions . set_options ( obj_handle , options , backend = backend )
Apply the groups to a single specified backend