Pydantic and ZODB

85 views
Skip to first unread message

Christian Klinger

unread,
Oct 14, 2020, 7:17:13 AM10/14/20
to zodb
Hey,

anyone here has tried to save a model in zodb which inerhits from both pydantic.BaseModel and Persistent.

Anyone has an opinion on that topic?

Thanks 
Christian

Paul Everitt

unread,
Nov 12, 2020, 10:10:56 AM11/12/20
to zodb
I talked with Jim about it September 2019. Here's what he guessed at: "OK. This isn't a case of violating persistence rules.  The problem arises from the fact that dataclass uses a metaclass.  This is probably sumountable and perhaps worth surmounting, as dataclasses seem to be popular. "

--Paul
Reply all
Reply to author
Forward
0 new messages