Thibaud Morel l'Horset wrote at 2008-12-15 23:59 -0500:
>One more thing... as far as I can tell there is still a need to set the
>header through a nocall if try to display your file content as part of a
>larger page that is generated with out of the box Page Templates or DTML
>methods.
The "index_
On Mon, Dec 15, 2008 at 03:52:35PM -0500, Thibaud Morel l'Horset wrote:
> That's a great tip about setting the content_type charset correctly. The
> way I was handling this so far was to specify it in the header of the page
> that was displaying the text:
> tal:content="nocall:python:request
One more thing... as far as I can tell there is still a need to set the
header through a nocall if try to display your file content as part of a
larger page that is generated with out of the box Page Templates or DTML
methods.
So the call that I pasted below should help if anyone else ever runs in
Hi Dieter,
That makes a lot of sense, thanks. Once I encode the strings in utf-8
there are no issues.
That's a great tip about setting the content_type charset correctly. The
way I was handling this so far was to specify it in the header of the page
that was displaying the text:
But s
Andreas Jung wrote at 2008-12-14 16:00 +0100:
>On 14.12.2008 15:44 Uhr, Thibaud Morel l'Horset wrote:
>> Hey AJ,
>>
>> Thanks. Full traceback below. Regarding storing files, I meant the File
>> Zope Object, as added by the following API call:
>> newFolder.manage_addFile(id,title=title, content_type
On 14.12.2008 15:44 Uhr, Thibaud Morel l'Horset wrote:
Hey AJ,
Thanks. Full traceback below. Regarding storing files, I meant the File
Zope Object, as added by the following API call:
newFolder.manage_addFile(id,title=title, content_type="text/plain",
file=content).
'file' must be an open fil
Hey AJ,
Thanks. Full traceback below. Regarding storing files, I meant the File
Zope Object, as added by the following API call:
newFolder.manage_addFile(id,title=title, content_type="text/plain",
file=content).
Exception Type AttributeError Exception Value 'unicode' object has no
attribute 's
On 14.12.2008 1:13 Uhr, Thibaud Morel l'Horset wrote:
Hello,
I'm trying to store strings with certain unicode characters that don't
convert to ascii in the ZODB. Specifically, as a file object and as
properties of that file object. I get the following errors (from a script):
*Error Type: Attrib