Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
9c1b50a6
Commit
9c1b50a6
authored
Jul 27, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a10f8190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
go/zodb/zodbpy.go
go/zodb/zodbpy.go
+2
-4
No files found.
go/zodb/zodbpy.go
View file @
9c1b50a6
...
...
@@ -26,7 +26,7 @@ import (
// PyPersistent is common base implementation for in-RAM representation of ZODB Python objects.
type
PyPersistent
struct
{
*
Persistent
// XXX remove ptr
Persistent
}
//func (pyobj *PyPersistent) PyClass() pickle.Class { return pyobj.pyclass }
...
...
@@ -46,13 +46,11 @@ type PyStateful interface {
// ---- PyPersistent <-> Persistent state exchange ----
// pyinstance returns .instance upcasted to
IPyPersistent
.
// pyinstance returns .instance upcasted to
XXXPy
.
//
// this should be always safe because we always create pyObjects via
// newGhost which passes IPyPersistent as instance to IPersistent. XXX no longer true
//func (pyobj *PyPersistent) pyinstance() IPyPersistent {
func
(
pyobj
*
PyPersistent
)
pyinstance
()
interface
{
IPersistent
;
Ghostable
;
PyStateful
}
{
//return pyobj.instance.(IPyPersistent)
return
pyobj
.
instance
.
(
interface
{
IPersistent
;
Ghostable
;
PyStateful
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment