Re: Re: UnicodeDecodeError

Toby Dickenson <[email protected]> Fri, 9 Dec 2005 10:12:40 +0000
Newsgroups gmane.comp.web.zope.zodb.dirstorage
Message-ID <[email protected]>
On Friday 09 December 2005 08:55, Philipp von Weitershausen wrote:

> FileStorage is a certain benchmark when it comes to functionality

I agree that is the benchmark, however....

> a) FileStorage doesn't seem to have a problem with it

I think it will have the same problem. afaict, FileStorage.format.TxnHeader 
uses str() to convert all these parameters to a plain string, and will 
therefore behaves the same way as DirectoryStorage. It will raise the same 
UnicodeError exception if given a unicode string containing anything other 
than ascii (7bit) values.

> Principal IDs (what used to be known
> as user names in Zope 2) can very well be unicode strings, in fact, they
> actually *should* be, as specified by the
> zope.security.interfaces.IPrincipal interface

but ITransaction requires that the 'user' and 'description' attributes are 
type str. 
-- 
Toby Dickenson

____________________

Important Notice:

This email and any attachments are confidential and may contain trade secrets or be legally privileged. If you have received this email in error you must not use, rely upon, disclose, copy or distribute the contents. Please reply to the sender so that proper delivery can be arranged and delete the email from your computer.
Gemini Data Loggers monitor incoming and outgoing email to ensure satisfactory customer service, maintain company security and prevent abuse of their email system. However, any views expressed in this email are not necessarily those of Gemini and Gemini cannot be held responsible for the content.
Gemini makes best efforts to ensure emails are virus free; however you are advised to carry out your own checks. Gemini does not accept responsibility for any damage resulting from email viruses.
____________________



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click