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