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

.

parent 5a938a10
...@@ -69,6 +69,11 @@ func (c *Client) LastTid() (zodb.Tid, error) { ...@@ -69,6 +69,11 @@ func (c *Client) LastTid() (zodb.Tid, error) {
return reply.Tid, nil return reply.Tid, nil
} }
func (c *Client) LastOid() (zodb.Oid, error) {
// XXX there is no LastOid in NEO/py
panic("TODO")
}
func (c *Client) Load(xid zodb.Xid) (data []byte, tid zodb.Tid, err error) { func (c *Client) Load(xid zodb.Xid) (data []byte, tid zodb.Tid, err error) {
// FIXME do not use global conn (see comment in openClientByURL) // FIXME do not use global conn (see comment in openClientByURL)
req := neo.GetObject{Oid: xid.Oid} req := neo.GetObject{Oid: xid.Oid}
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# TODO author/copyright # Copyright (C) 2017 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your
# option) any later version, as published by the Free Software Foundation.
#
# You can also Link and Combine this program with other software covered by
# the terms of any of the Free Software licenses or any of the Open Source
# Initiative approved licenses and Convey the resulting work. Corresponding
# source of such a combination shall include the source code for all other
# software used.
#
# This program is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
# TODO move gen .fs & .index part to zodbtools and use it there for tests # TODO move gen .fs & .index part to zodbtools and use it there for tests
# NOTE as of 14 Mar 2017 FileStorage cannot commit transactions with non-ASCII # NOTE as of 14 Mar 2017 FileStorage cannot commit transactions with non-ASCII
# metadata - so it is not tested # metadata - so it is not tested
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# TODO author/copyright # Copyright (C) 2017 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your
# option) any later version, as published by the Free Software Foundation.
#
# You can also Link and Combine this program with other software covered by
# the terms of any of the Free Software licenses or any of the Open Source
# Initiative approved licenses and Convey the resulting work. Corresponding
# source of such a combination shall include the source code for all other
# software used.
#
# This program is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
"""compare two ZODB FileStorage v1 index files""" """compare two ZODB FileStorage v1 index files"""
from ZODB.fsIndex import fsIndex from ZODB.fsIndex import fsIndex
......
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