[reportlab-users] Reportlab and GoogleAppEngine
Robin Becker
robin at reportlab.com
Sat May 3 18:10:38 EDT 2008
Dirk Holtwick wrote:
> Hi,
>
> I thought that might be an interesting information for you, that the
> Reportlab Toolkit works fine on the restricted Python 2.5 Environment of
> the new Google AppEngine. I use it for this little demo of HTML to PDF
> conversion and it performs very well:
>
> http://xhtml2pdf.appspot.com/
>
>
> Regards,
> Dirk
.......
Dirk, your app is not returning properly when an error occurs. It
returns result.pdf as a text file and that seems to confuse my browser
into trying to open the traceback text as a pdf.
Anyhow the error I got was this
Traceback (most recent call last):
File
"/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
line 501, in __call__
handler.post(*groups)
File "/base/data/home/apps/xhtml2pdf/1.7/main.py", line 76, in post
conversion.put()
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
615, in put
self._populate_internal_entity()
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
597, in _populate_internal_entity
self._entity = self._populate_entity(_entity_class=_entity_class)
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
645, in _populate_entity
self._to_entity(entity)
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
587, in _to_entity
entity[prop.name] = datastore_value
File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
line 343, in __setitem__
datastore_types.ToPropertyPb(name, value)
File
"/base/python_lib/versions/1/google/appengine/api/datastore_types.py",
line 976, in ToPropertyPb
(name, len(v), max_len))
BadValueError: Property content is 20979 bytes long; it must be 500 or
less. Consider Text instead, which can store strings of any length.
I suppose I was trying to convert something that was too large.
--
Robin Becker
More information about the reportlab-users
mailing list