def METHOD_NAME(f):
    def my2OM(a):
        """FIXME: very dirty"""
        global save_ring
        if (dmplQ(a)):
            dmpl=a
            r=OM2ring(dmpl.args[0])
            r.set()
            i=OM2ideal_raw(dmpl)
            save_ring=r
            return i
        return a
    def wrapper(*args):
        return f(*[my2OM(a) for a in args])
    wrapper.__name__=f.__name__
    return wrapper