Re: [dev] RFC: Transaction meta data
Jim Fulton <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <CAPDm-Fi8S=JS=ba9MXgrHv_sLeiDe858H3o_Ev80WHP8Ped-1Q@mail.gmail.com> |
On Tue, Nov 15, 2016 at 1:25 PM, Jim Fulton <[email protected]> wrote: > tl;dr We've decided: > > - Transaction user and description are text (unicode) and it should be > an error to try to set/update them with bytes, even if the bytes only > contain ascii data, > > Well, that turned out to be a bad idea, at least in the short run. It resulted in lots of projects being unable to use the current release of the transaction package and unable to use current versions of dependent projects, like ZODB, that depend on the transaction package. I propose to change the transaction to accept bytes for meta data. When getting bytes, it will: - Issue a deprecation warning, and - decode the data assuming latin-1. Any objections? Jim -- Jim Fulton http://jimfulton.info -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.