Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
6aec04f4
Commit
6aec04f4
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug
#289
parent
e80a33a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sakia/gui/wot_tab.py
+20
-16
20 additions, 16 deletions
src/sakia/gui/wot_tab.py
with
20 additions
and
16 deletions
src/sakia/gui/wot_tab.py
+
20
−
16
View file @
6aec04f4
...
...
@@ -16,8 +16,9 @@ from .certification import CertificationDialog
from
.transfer
import
TransferMoneyDialog
from
.contact
import
ConfigureContactDialog
from
..gen_resources.wot_tab_uic
import
Ui_WotTabWidget
from
sakia.gui.views.wot
import
NODE_STATUS_HIGHLIGHTED
,
NODE_STATUS_SELECTED
,
NODE_STATUS_OUT
from
sakia.gui.widgets.busy
import
Busy
from
.views.wot
import
NODE_STATUS_HIGHLIGHTED
,
NODE_STATUS_SELECTED
,
NODE_STATUS_OUT
from
.widgets.busy
import
Busy
from
..tools.exceptions
import
NoPeerAvailable
class
WotTabWidget
(
QWidget
,
Ui_WotTabWidget
):
...
...
@@ -267,20 +268,23 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
if
len
(
text
)
<
2
:
return
False
response
=
yield
from
self
.
community
.
bma_access
.
future_request
(
bma
.
wot
.
Lookup
,
{
'
search
'
:
text
})
nodes
=
{}
for
identity
in
response
[
'
results
'
]:
nodes
[
identity
[
'
pubkey
'
]]
=
identity
[
'
uids
'
][
0
][
'
uid
'
]
if
nodes
:
self
.
nodes
=
list
()
self
.
comboBoxSearch
.
clear
()
self
.
comboBoxSearch
.
lineEdit
().
setText
(
text
)
for
pubkey
,
uid
in
nodes
.
items
():
self
.
nodes
.
append
({
'
pubkey
'
:
pubkey
,
'
uid
'
:
uid
})
self
.
comboBoxSearch
.
addItem
(
uid
)
self
.
comboBoxSearch
.
showPopup
()
try
:
response
=
yield
from
self
.
community
.
bma_access
.
future_request
(
bma
.
wot
.
Lookup
,
{
'
search
'
:
text
})
nodes
=
{}
for
identity
in
response
[
'
results
'
]:
nodes
[
identity
[
'
pubkey
'
]]
=
identity
[
'
uids
'
][
0
][
'
uid
'
]
if
nodes
:
self
.
nodes
=
list
()
self
.
comboBoxSearch
.
clear
()
self
.
comboBoxSearch
.
lineEdit
().
setText
(
text
)
for
pubkey
,
uid
in
nodes
.
items
():
self
.
nodes
.
append
({
'
pubkey
'
:
pubkey
,
'
uid
'
:
uid
})
self
.
comboBoxSearch
.
addItem
(
uid
)
self
.
comboBoxSearch
.
showPopup
()
except
NoPeerAvailable
:
pass
def
select_node
(
self
,
index
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment