[Moin-user] Re: Re: Re: Image formatters and UTF8
geek+ at cmu.edu
Thu Feb 9 13:21:03 EST 2006
> On Wed, 8 Feb 2006 11:15:40 +0100
> Alexander Schremmer <2005a at usenet.alexanderweb.de> wrote:
>> On Mon, 6 Feb 2006 21:45:53 +0100, Jiba wrote:
>>>>> Actually the formatter must return unicode object (because the cache
>>>>> system concatenate the returned string with other unicode strings).
>>> My formatter returns Unicode ; if it don't, I get the following error :
>> OK, I checked the code paths. There are already formatters that emit binary
>> data. And the only way to do this is to write it to request.write instead
>> of returning it. So your functions have to return an empty string and use
>> request.write on their own.
> The problem is that doing so (and if i have understood the code well), i cannot use the MoinMoin cache system... however image generation is quite slow and thus i need to cache the images !
Theoretically, this could be done by having the parser create an image
and drop it into the attachments directory, and return just the
reference to the image.
More information about the Moin-user