Re: [dev] RFC: Transaction meta data
Jim Fulton <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <CAPDm-Fhuna=7eaiP2omyu5Z81uSsjinWqytKMimcGf6nLA=n2w@mail.gmail.com> |
On Thu, Mar 9, 2017 at 1:02 PM, Hanno Schlichting <[email protected]> wrote: > On Thu, Mar 9, 2017, at 18:58, Jim Fulton wrote: > > 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? > > > At least in older Zope 2 releases, both None and integers are used in meta > data as well. > whimper. Well, None I'd be inclined to treat at a noop. How about if not unicode and not bytes, the unicode/str of whatever is given. (I'm inclined to be more loose/forgiving given that this is a deprecated feature.) 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.