That is very clear, thanks Casey.
On Tue, Apr 6, 2010 at 6:20 PM, Casey Duncan wrote:
> The only requirement for an object to be stored in zodb is that it is
> pickeable. However, if an object is mutable (as most user-defined objects
> are) its class should subclass Persistent so that updates to
The only requirement for an object to be stored in zodb is that it is
pickeable. However, if an object is mutable (as most user-defined objects are)
its class should subclass Persistent so that updates to it are automatically
saved and it will get put as its own "record" in the database.
Practi
Hi,
are you referring to this Feeds example:
http://dev.karlproject.org/tutorials/t2-contentandcataloging/feedentries.html
If that's the case, note that both Feed and FeedEntry inherit from
repoze.folder.Folder, which in fact does inherit from Persistent:
http://svn.repoze.org/repoze.folder/tru
In the official documentation, the tutorial of zodb wiki shows a Page class
who is inherited from the the Persistent. When I look at the Feeds Tool
example on Karl, none of the model classes are inherited from the
Persistent, but the objects are saved into the zodb. So I would like to know
the deta