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
40ba937d
Commit
40ba937d
authored
Feb 28, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move import to top-level.
parent
6c9dccb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
neo/storage/handlers/identification.py
neo/storage/handlers/identification.py
+1
-1
No files found.
neo/storage/handlers/identification.py
View file @
40ba937d
...
@@ -22,6 +22,7 @@ from neo.lib.protocol import NodeTypes, Packets, NotReadyError
...
@@ -22,6 +22,7 @@ from neo.lib.protocol import NodeTypes, Packets, NotReadyError
from
neo.lib.protocol
import
ProtocolError
,
BrokenNodeDisallowedError
from
neo.lib.protocol
import
ProtocolError
,
BrokenNodeDisallowedError
from
neo.lib.util
import
dump
from
neo.lib.util
import
dump
from
.storage
import
StorageOperationHandler
from
.storage
import
StorageOperationHandler
from
.client
import
ClientOperationHandler
class
IdentificationHandler
(
EventHandler
):
class
IdentificationHandler
(
EventHandler
):
""" Handler used for incoming connections during operation state """
""" Handler used for incoming connections during operation state """
...
@@ -50,7 +51,6 @@ class IdentificationHandler(EventHandler):
...
@@ -50,7 +51,6 @@ class IdentificationHandler(EventHandler):
raise
BrokenNodeDisallowedError
raise
BrokenNodeDisallowedError
# choose the handler according to the node type
# choose the handler according to the node type
if
node_type
==
NodeTypes
.
CLIENT
:
if
node_type
==
NodeTypes
.
CLIENT
:
from
.client
import
ClientOperationHandler
handler
=
ClientOperationHandler
handler
=
ClientOperationHandler
if
node
is
None
:
if
node
is
None
:
node
=
app
.
nm
.
createClient
(
uuid
=
uuid
)
node
=
app
.
nm
.
createClient
(
uuid
=
uuid
)
...
...
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