I cannot reproduce the problem from Mac with FF.

        request.flash = 'ok'
should be
        response.flash = 'ok'

but that is not causing your problem.

On Apr 26, 12:55 am, hywang <why00...@163.com> wrote:
> error also occurs when run web2py from source on window platform.
> no better result when use ie8
> On 4月26日, 下午12时09分, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > which Python version? Which browser?
>
> > massimo
>
> > On Apr 25, 10:53 pm, hywang <why00...@163.com> wrote:
>
> > > I run web2py from source on centos 5.3.
> > > When upload a file, an error occurs.
> > > -----db.py-----------
> > > db.define_table('easy_test',
> > >     Field('picture', 'upload')
> > > )
>
> > > ---------controller file---------------
> > > def hello():
> > >     form = SQLFORM(db.easy_test)
> > >     if form.accepts(request.vars, session):
> > >         request.flash = 'ok'
> > >     return dict(form=form)
>
> > > when submit the form, it returns 'server error'
> > > consel error msg :
> > > ERROR:Rocket.Errors.Thread-3:Traceback (most recent call last):
> > >   File "E:\web2py\gluon\rocket.py", line 747, in run
> > >     self.run_app(conn)
> > >   File "E:\web2py\gluon\rocket.py", line 1162, in run_app
> > >     sections = len(output)
> > >   File "C:\Python25\lib\cgi.py", line 633, in __len__
> > >     return len(self.keys())
> > >   File "C:\Python25\lib\cgi.py", line 609, in keys
> > >     raise TypeError, "not indexable"
> > > TypeError: not indexable
>
> > > --
> > > Subscription 
> > > settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to