On Saturday, June 11, 2022 at 10:04:09 PM UTC-7 mostwanted wrote: > It says > *<type 'exceptions.ImportError'> cannot import name prevent_open_redirect* > > under code listing it highlighted the line in red > > import re > from gluon.admin import * > from gluon.fileutils import abspath, read_file, write_file > from gluon.utils import web2py_uuid > *from gluon.tools import Config, prevent_open_redirect* > from gluon.compileapp import find_exposed_functions > from glob import glob > from gluon._compat import iteritems, PY2, pickle, xrange, urlopen, > to_bytes, StringIO, to_native, reload > import gluon.rewrite >
Hmmm, I can find that function in the 2.22.3 version, so It's still around. It will take someone with a more intimate understanding of the subsystem to explain the problem. I do use a load() call in my apps, but the one I use the most loads a form. It is not set up as a callback. Dave S /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/9d3f35c0-6461-4ed2-a6f3-efcdea9184ecn%40googlegroups.com.