Commit 6db06b18 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c7c12d30
......@@ -437,7 +437,6 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent {
var xpobj reflect.Value // *typ
zc := classTab[class]
if zc == nil {
//return nil
zc = brokenZClass
xpobj = reflect.ValueOf(&Broken{class: class})
} else {
......@@ -494,12 +493,6 @@ func (b *brokenState) SetState(state *mem.Buf) error {
return nil
}
// XXX how to print zodb.Broken("BTrees.IOBTree.IOBTree"), but not long noise for types that don't define GoString?
// XXX -> zodb.ClassOf
// func (b *Broken) GoString() string {
// return fmt.Sprintf("&zodb.Broken(%q)", b.class)
// }
// brokenZClass is used for Persistent.zclass for Broken objects.
var brokenZClass = &zclass{
class: "",
......
// Copyright (C) 2016-2018 Nexedi SA and Contributors.
// Copyright (C) 2016-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......
......@@ -293,7 +293,7 @@ var haveZODBPy = false
var workRoot string
func TestMain(m *testing.M) {
// check whether we have zodb/py XXX + zodbtools
// check whether we have zodb/py XXX + zodbtools -> needPy(modv)
cmd := exec.Command("python2", "-c", "import ZODB")
err := cmd.Run()
if err == nil {
......
// Copyright (C) 2016-2018 Nexedi SA and Contributors.
// Copyright (C) 2016-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......@@ -431,8 +431,8 @@ type Committer interface {
// CommitEvent is event describing one observed database commit.
type CommitEvent struct {
Tid Tid
Changev []Oid // XXX name
Tid Tid // ID of committed transaction
Changev []Oid // ID of objects changed by committed transaction
}
// Watcher allows to be notified of changes to database.
......
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