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
399680df
Commit
399680df
authored
10 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in wot if public key is unknown
parent
ef583b01
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cutecoin/gui/wot_tab.py
+10
-1
10 additions, 1 deletion
src/cutecoin/gui/wot_tab.py
with
10 additions
and
1 deletion
src/cutecoin/gui/wot_tab.py
+
10
−
1
View file @
399680df
...
...
@@ -2,6 +2,7 @@
import
time
import
datetime
import
logging
from
PyQt5.QtWidgets
import
QWidget
from
..gen_resources.wot_tab_uic
import
Ui_WotTabWidget
...
...
@@ -47,12 +48,20 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
:param public_key: Public key of the identity
"""
try
:
certifiers
=
self
.
community
.
request
(
bma
.
wot
.
CertifiersOf
,
{
'
search
'
:
public_key
})
except
ValueError
as
e
:
logging
.
debug
(
'
bma.wot.CertifiersOf request error :
'
+
str
(
e
))
return
False
# reset graph
graph
=
dict
()
# add wallet node
node_status
=
(
NODE_STATUS_HIGHLIGHTED
and
(
public_key
==
self
.
account
.
pubkey
))
or
0
node_status
+=
NODE_STATUS_SELECTED
certifiers
=
self
.
community
.
request
(
bma
.
wot
.
CertifiersOf
,
{
'
search
'
:
public_key
})
# highlighted node (wallet)
graph
[
public_key
]
=
{
'
arcs
'
:
[],
'
text
'
:
certifiers
[
'
uid
'
],
'
tooltip
'
:
public_key
,
'
status
'
:
node_status
}
# add certifiers of uid
...
...
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