when i try it again today, everything is ok today.
I don't know why :-(
On 4月26日, 下午11时42分, mdipierro mdipie...@cs.depaul.edu wrote:
I cannot reproduce this either. It is not an internationalization
issue. I suspect something else in the code is causing this. We need
to see at the entire code.
Let us know if it comes up again.
-tim
On 4/27/2010 1:30 AM, hywang wrote:
when i try it again today, everything is ok today.
I don't know why :-(
On 4月26日, 下午11时42分, mdipierromdipie...@cs.depaul.edu wrote:
I cannot reproduce this either. It is not an internationalization
issue. I
Tim, did you try with the IS_IMAGE validator?
On Apr 27, 7:56 am, Timothy Farrell tfarr...@swgen.com wrote:
Let us know if it comes up again.
-tim
On 4/27/2010 1:30 AM, hywang wrote:
when i try it again today, everything is ok today.
I don't know why :-(
On 4月26日, 下午11时42分,
I didn't originally, but did after you mentioned it. It worked both
ways for me.
On 4/27/2010 8:56 AM, mdipierro wrote:
Tim, did you try with the IS_IMAGE validator?
On Apr 27, 7:56 am, Timothy Farrelltfarr...@swgen.com wrote:
Let us know if it comes up again.
-tim
On 4/27/2010 1:30
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 =
To help us debug this..
before line 1162 in gluon/rocket.py
if hasattr(output, '__len__'):
sections = len(output)
please add
if hasattr(output, '__len__'):
print 'CHECK:',type(output), repr(output)[:100]+'...'
sections =
the output:
CHECK: type 'list' ['!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional
//EN http://www.w3.org/TR/xhtml1/DTD/xh...
I try the bug in some platforms. python version is 2.5.4, web2py 1.77.3
winxp, bug appears sometimes
win7, bug appears everytime
centos5.3, bug appears sometimes
I am short of ideas.
You tell us that the variable output is a list but len(output) calls
the __len__ method in the cgi.py module.
Can anybody reproduce this behavior?
Massimo
On Apr 27, 8:09 pm, 王怀玉 why00...@163.com wrote:
the output:
CHECK: type 'list' ['!DOCTYPE html PUBLIC -//W3C//DTD
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
Do you have a view with a custom form?
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
i has no view .
when i test newest version in google hg server, web2py works well,
but if I add IS_IMAGE() validator, some error occured again.
ver1.6x works well
On 4月26日, 下午2时01分, mdipierro mdipie...@cs.depaul.edu wrote:
Do you have a view with a custom form?
On Apr 25, 10:53 pm, hywang
no better result if i create my own view.
when i use newest version from google hg server, i can upload file
correctly, but if i add a
validator IS_IMAGE to 'upload' field, an error will occur also.
On 4月26日, 下午2时01分, mdipierro mdipie...@cs.depaul.edu wrote:
Do you have a view with a custom
may be it is an ooold bug, Discussion about it can be found here:
http://groups.google.com/group/web2py/browse_thread/thread/bdfb9bb617488d5/641e843715eb8b11?lnk=gstq=raise+TypeError%2C+%22not+indexable%22#641e843715eb8b11
On 4月26日, 下午3时44分, hywang why00...@163.com wrote:
no better result if i
Massimo, I know you sent me an email on this but I can't find it so I'll
just reply to the list.
Rocket is dying in this case because the object it has received from
web2py is not a valid WSGI response. A valid WSGI response must be
either a list or generator (Rocket is a little more tolerant and
I think we need some debugging. His code is
def hello():
form = SQLFORM(db.easy_test)
if form.accepts(request.vars, session):
request.flash = 'ok'
return dict(form=form)
and web2py returns a list with a string in this case (the generic view
that renders the dict()). I do not
My assumption that web2py is returning something other than a list comes
from the traceback. Why would calling:
len(returned_obj)
go into the cgi module if it was a string? Rocket alone does not use
the cgi module at all so the returned object must be related to it
somehow. We know that
I cannot reproduce this either. It is not an internationalization
issue. I suspect something else in the code is causing this. We need
to see at the entire code.
On Apr 26, 10:37 am, Timothy Farrell tfarr...@swgen.com wrote:
My assumption that web2py is returning something other than a list
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
python2.5 browser is ff3.62
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---
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
20 matches
Mail list logo