Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
508ba138
Commit
508ba138
authored
Jul 18, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extension methods aren't supported sny more
parent
3c525909
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+0
-23
No files found.
src/ZEO/StorageServer.py
View file @
508ba138
...
...
@@ -76,10 +76,6 @@ registered_methods = set(( 'get_info', 'lastTransaction',
class
ZEOStorage
:
"""Proxy to underlying storage for a single remote client."""
# A list of extension methods. A subclass with extra methods
# should override.
extensions
=
[]
connected
=
connection
=
stats
=
storage
=
storage_id
=
transaction
=
None
blob_tempfile
=
None
log_label
=
'unconnected'
...
...
@@ -91,10 +87,6 @@ class ZEOStorage:
self
.
client_conflict_resolution
=
server
.
client_conflict_resolution
# timeout and stats will be initialized in register()
self
.
read_only
=
read_only
# The authentication protocol may define extra methods.
self
.
_extensions
=
{}
for
func
in
self
.
extensions
:
self
.
_extensions
[
func
.
__name__
]
=
None
self
.
_iterators
=
{}
self
.
_iterator_ids
=
itertools
.
count
()
# Stores the last item that was handed out for a
...
...
@@ -154,17 +146,6 @@ class ZEOStorage:
record_iternext
=
getattr
(
storage
,
'record_iternext'
,
None
)
if
record_iternext
is
not
None
:
self
.
record_iternext
=
record_iternext
try
:
fn
=
storage
.
getExtensionMethods
except
AttributeError
:
pass
# no extension methods
else
:
d
=
fn
()
self
.
_extensions
.
update
(
d
)
for
name
in
d
:
assert
not
hasattr
(
self
,
name
)
setattr
(
self
,
name
,
getattr
(
storage
,
name
))
self
.
lastTransaction
=
storage
.
lastTransaction
try
:
...
...
@@ -250,7 +231,6 @@ class ZEOStorage:
'size'
:
storage
.
getSize
(),
'name'
:
storage
.
getName
(),
'supportsUndo'
:
supportsUndo
,
'extensionMethods'
:
self
.
getExtensionMethods
(),
'supports_record_iternext'
:
hasattr
(
self
,
'record_iternext'
),
'interfaces'
:
tuple
(
interfaces
),
}
...
...
@@ -260,9 +240,6 @@ class ZEOStorage:
'size'
:
self
.
storage
.
getSize
(),
}
def
getExtensionMethods
(
self
):
return
self
.
_extensions
def
loadEx
(
self
,
oid
):
self
.
stats
.
loads
+=
1
return
self
.
storage
.
load
(
oid
,
''
)
...
...
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