Now I can insert records, but after that no new record appears in the
gallery_images table, and when I try to load the thumbnails via the
download function (with attachment=False) I get the following error:

Traceback (most recent call last):
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/gluon/
restricted.py", line 188, in restricted
    exec ccode in environment
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/
applications/init/controllers/gallery.py", line 90, in <module>
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/gluon/
globals.py", line 96, in <lambda>
    self._caller = lambda f: f()
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/
applications/init/controllers/gallery.py", line 88, in download
    return response.download(request,db,attachment=False)
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/gluon/
globals.py", line 196, in download
    (filename, stream) = field.retrieve(name)
  File "/home/istvan/Documents/Mercurial/web2py-trunk-test/gluon/
sql.py", line 2864, in retrieve
    query = self.uploadfield == newfilename
NameError: global name 'newfilename' is not defined

Reply via email to