I am getting above error. I looked at the code a little more and saw
this
self.file = file
self.length = length
self._consumed = 0
if hasattr(self.file, 'seek'):
self.seek = self._seek
So seems like "self.file" doesn't have attribute 'seek' as expected.
Any one has any idea what could be causing this? I am attaching the
full trace.
2009-08-18 14:59:48.192 INFO [quiz2.model] Failed to fetch dimension
0 for modification
Error - <type 'exceptions.AttributeError'>: 'LimitedLengthFile' object
has no attribute 'seek'
URL: http://174.37.50.132/images/receive_upload
File '/usr/lib/python2.5/site-packages/Paste-1.7.3dev_r7990-py2.5.egg/
paste/exceptions/errormiddleware.py', line 144 in __call__
app_iter = self.application(environ, sr_checker)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/
wsgiapp.py', line 314 in __call__
return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Routes-1.10.1-py2.5.egg/routes/
middleware.py', line 62 in __call__
elif is_form_post(environ) and '_method' in req.POST:
File '/usr/lib/python2.5/site-packages/Paste-1.7.3dev_r7990-py2.5.egg/
paste/wsgiwrappers.py', line 213 in POST
params = self._POST()
File '/usr/lib/python2.5/site-packages/Paste-1.7.3dev_r7990-py2.5.egg/
paste/wsgiwrappers.py', line 195 in _POST
return parse_formvars(self.environ, include_get_vars=False)
File '/usr/lib/python2.5/site-packages/Paste-1.7.3dev_r7990-py2.5.egg/
paste/request.py', line 174 in parse_formvars
keep_blank_values=1)
File '/usr/lib64/python2.5/cgi.py', line 534 in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
File '/usr/lib64/python2.5/cgi.py', line 657 in read_multi
headers = rfc822.Message(self.fp)
File '/usr/lib64/python2.5/rfc822.py', line 104 in __init__
self.readheaders()
File '/usr/lib64/python2.5/rfc822.py', line 188 in readheaders
self.fp.seek(startofline)
AttributeError: 'LimitedLengthFile' object has no attribute 'seek'
CGI Variables
-------------
CONTENT_LENGTH: '35719'
CONTENT_TYPE: 'multipart/form-data;
boundary=---------------------------7d9e6209070a'
HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/x-shockwave-
flash, application/x-silverlight, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*'
HTTP_ACCEPT_ENCODING: 'gzip, deflate'
HTTP_ACCEPT_LANGUAGE: 'en-us'
HTTP_CACHE_CONTROL: 'no-cache'
HTTP_CONNECTION: 'Keep-Alive'
HTTP_HOST: '174.37.50.132'
HTTP_REFERER: 'http://apps.facebook.com/quizapps/questions_entry/
render/2313297'
HTTP_UA_CPU: 'x86'
HTTP_USER_AGENT: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SIMBAR={4121AA87-8E3D-427A-9533-7F87CA8D832E}; SLCC1; .NET CLR
2.0.50727; Media Center PC 5.0; InfoPath.2; OfficeLiveConnector.1.3;
OfficeLivePatch.0.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)'
PATH_INFO: '/receive_upload'
REMOTE_ADDR: '10.9.89.30'
REQUEST_METHOD: 'POST'
SCRIPT_NAME: '/images'
SERVER_NAME: '0.0.0.0'
SERVER_PORT: '9096'
SERVER_PROTOCOL: 'HTTP/1.1'
WSGI Variables
--------------
application: <pylons.wsgiapp.PylonsApp object at 0x1a0b410>
paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at
0xbc61d0>
paste.recursive.forward: <paste.recursive.Forwarder from /images>
paste.recursive.include: <paste.recursive.Includer from /images>
paste.recursive.include_app_iter: <paste.recursive.IncluderAppIter
from /images>
paste.recursive.script_name: '/images'
paste.registry: <paste.registry.Registry object at 0x430fd50>
paste.throw_errors: True
pylons.environ_config: {'session': None, 'cache': None}
pylons.error_call: True
wsgi process: 'Multithreaded'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---