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
88eeab68
Commit
88eeab68
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash
#274
parent
c8b360d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cutecoin/core/app.py
+1
-1
1 addition, 1 deletion
src/cutecoin/core/app.py
src/cutecoin/core/graph.py
+1
-1
1 addition, 1 deletion
src/cutecoin/core/graph.py
src/cutecoin/gui/wot_tab.py
+8
-3
8 additions, 3 deletions
src/cutecoin/gui/wot_tab.py
with
10 additions
and
5 deletions
src/cutecoin/core/app.py
+
1
−
1
View file @
88eeab68
...
@@ -42,7 +42,7 @@ class Application(QObject):
...
@@ -42,7 +42,7 @@ class Application(QObject):
Init a new
"
cutecoin
"
application
Init a new
"
cutecoin
"
application
:param QCoreApplication qapp: Qt Application
:param QCoreApplication qapp: Qt Application
:param quamash.QEventLoop loop: quamash.QEventLoop instance
:param quamash.QEventLoop loop: quamash.QEventLoop instance
:param IdentitiesRegistry identities_registry: IdentitiesRegistry instance
:param
cutecoin.core.registry.
IdentitiesRegistry identities_registry: IdentitiesRegistry instance
:return:
:return:
"""
"""
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/core/graph.py
+
1
−
1
View file @
88eeab68
...
@@ -118,7 +118,7 @@ class Graph(object):
...
@@ -118,7 +118,7 @@ class Graph(object):
node
=
self
.
_graph
[
pubkey
]
node
=
self
.
_graph
[
pubkey
]
if
node
[
'
id
'
]
in
tuple
(
done
):
if
node
[
'
id
'
]
in
tuple
(
done
):
continue
continue
identity_selected
=
identity
.
from_handled_data
(
node
[
'
text
'
],
node
[
'
id
'
],
BlockchainState
.
VALIDATED
)
identity_selected
=
identity
.
from_handled_data
(
node
[
'
text
'
],
node
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
)
certifier_list
=
yield
from
identity_selected
.
unique_valid_certifiers_of
(
self
.
app
.
identities_registry
,
certifier_list
=
yield
from
identity_selected
.
unique_valid_certifiers_of
(
self
.
app
.
identities_registry
,
self
.
community
)
self
.
community
)
yield
from
self
.
add_certifier_list
(
certifier_list
,
identity_selected
,
identity
)
yield
from
self
.
add_certifier_list
(
certifier_list
,
identity_selected
,
identity
)
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/wot_tab.py
+
8
−
3
View file @
88eeab68
...
@@ -26,8 +26,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -26,8 +26,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
def
__init__
(
self
,
app
):
def
__init__
(
self
,
app
):
"""
"""
:param cutecoin.core.app.Application app: Application instance
:param cutecoin.core.app.Application app: Application instance
:return:
"""
"""
super
().
__init__
()
super
().
__init__
()
# construct from qtDesigner
# construct from qtDesigner
...
@@ -178,6 +177,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -178,6 +177,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
self
.
app
.
identities_registry
.
from_handled_data
(
self
.
app
.
identities_registry
.
from_handled_data
(
metadata
[
'
text
'
],
metadata
[
'
text
'
],
metadata
[
'
id
'
],
metadata
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
,
BlockchainState
.
VALIDATED
,
self
.
community
self
.
community
)
)
...
@@ -294,6 +294,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -294,6 +294,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
self
.
app
.
identities_registry
.
from_handled_data
(
self
.
app
.
identities_registry
.
from_handled_data
(
metadata
[
'
text
'
],
metadata
[
'
text
'
],
metadata
[
'
id
'
],
metadata
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
,
BlockchainState
.
VALIDATED
,
self
.
community
self
.
community
)
)
...
@@ -303,6 +304,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -303,6 +304,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
metadata
[
'
text
'
],
metadata
[
'
text
'
],
metadata
[
'
id
'
],
metadata
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
,
BlockchainState
.
VALIDATED
,
self
.
community
self
.
community
)
)
...
@@ -315,6 +317,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -315,6 +317,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
metadata
[
'
text
'
],
metadata
[
'
text
'
],
metadata
[
'
id
'
],
metadata
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
,
BlockchainState
.
VALIDATED
,
self
.
community
self
.
community
)
)
...
@@ -327,6 +330,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -327,6 +330,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
identity
=
self
.
app
.
identities_registry
.
from_handled_data
(
metadata
[
'
text
'
],
metadata
[
'
text
'
],
metadata
[
'
id
'
],
metadata
[
'
id
'
],
None
,
BlockchainState
.
VALIDATED
,
BlockchainState
.
VALIDATED
,
self
.
community
self
.
community
)
)
...
@@ -346,7 +350,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -346,7 +350,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
or
metadata
[
'
id
'
]
in
[
contact
[
'
pubkey
'
]
for
contact
in
self
.
account
.
contacts
]:
or
metadata
[
'
id
'
]
in
[
contact
[
'
pubkey
'
]
for
contact
in
self
.
account
.
contacts
]:
return
False
return
False
dialog
=
ConfigureContactDialog
(
self
.
account
,
self
.
window
(),
{
'
name
'
:
metadata
[
'
text
'
],
dialog
=
ConfigureContactDialog
(
self
.
account
,
self
.
window
(),
{
'
name
'
:
metadata
[
'
text
'
],
'
pubkey
'
:
metadata
[
'
id
'
]})
'
pubkey
'
:
metadata
[
'
id
'
],
})
result
=
dialog
.
exec_
()
result
=
dialog
.
exec_
()
if
result
==
QDialog
.
Accepted
:
if
result
==
QDialog
.
Accepted
:
self
.
window
().
refresh_contacts
()
self
.
window
().
refresh_contacts
()
...
...
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