Re: [dev] RFC: Transaction meta data

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <1489751312.3620115.914470784.037F42B4@webmail.messagingengine.com>
On Thu, Mar 16, 2017, at 23:19, Jim Fulton wrote:

> I'm guessing that None can be passed as the user to setUser, which
> makes perfect sense, for unauthenticated requests.
> 

> Oh, and I bet integers principal ids are passed to getUser as well.



Yeah, sorry. I based my suggestion on something I've heard from the last
Plone Sprint and generalized it too much.


The int/None behavior was only a problem for setUser. One relevant
commit here was
https://github.com/zopefoundation/Zope/commit/a35b29bb7879be88f65ae6a0c0a2b40cc60becbc


> If my analysis is correct, assigning directly to user or description
> with anything other than text or bytes should error, as it did before.
> Ditto for passing anything but text or bytes to note(). setUser can
> continue to stringify with a warning.


Sounds good to me.



Hanno

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.