Commit b9429db4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9f951fcf
...@@ -134,6 +134,11 @@ const ( ...@@ -134,6 +134,11 @@ const (
// t := reflect.TypeOf // t := reflect.TypeOf
// zodb.RegisterClass("mymodule.MyObject", t(MyObject{}), t(myObjectState)) // zodb.RegisterClass("mymodule.MyObject", t(MyObject{}), t(myObjectState))
// } // }
//
// A new instance of the class that embeds Persistent must be created via
// NewPersistent, for example:
//
// obj := zodb.NewPersistent(reflect.TypeOf(MyObject{}), jar).(*MyObject)
type Persistent struct { type Persistent struct {
// ZODB class of this object. // ZODB class of this object.
// XXX it could be deduced via typeTab[reflect.TypeOf(.instance)] // XXX it could be deduced via typeTab[reflect.TypeOf(.instance)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment