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
Snippets
Deploy
Releases
Container Registry
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
Show more breadcrumbs
Santiago
sakia
Commits
c9e3d312
Commit
c9e3d312
authored
10 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Small change in account save
parent
9a61a686
No related branches found
Branches containing commit
Tags
0.6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cutecoin/core/account.py
+12
-18
12 additions, 18 deletions
src/cutecoin/core/account.py
with
12 additions
and
18 deletions
src/cutecoin/core/account.py
+
12
−
18
View file @
c9e3d312
...
...
@@ -191,29 +191,23 @@ class Account(object):
community
.
post
(
bma
.
blockchain
.
Membership
,
{},
{
'
membership
'
:
membership
.
signed_raw
()})
def
jsonify_contacts
(
self
):
data
=
[]
for
p
in
self
.
contacts
:
data
.
append
(
p
.
jsonify
())
return
data
def
jsonify
(
self
):
data_communities
=
[]
for
c
in
self
.
communities
:
data_communities
.
append
(
c
.
jsonify
())
def
jsonify_wallets
(
self
):
data
=
[]
data_wallets
=
[]
for
w
in
self
.
wallets
:
data
.
append
(
w
.
jsonify
())
return
data
data_wallets
.
append
(
w
.
jsonify
())
def
jsonify_community
(
self
):
data
=
[]
for
c
in
self
.
communities
:
data
.
append
(
c
.
jsonify
())
return
data
data_contacts
=
[]
for
p
in
self
.
contacts
:
data_contacts
.
append
(
p
.
jsonify
())
def
jsonify
(
self
):
data
=
{
'
name
'
:
self
.
name
,
'
salt
'
:
self
.
salt
,
'
pubkey
'
:
self
.
pubkey
,
'
communities
'
:
self
.
jsonify
_communit
y
()
,
'
wallets
'
:
self
.
jsonify
_wallets
()
,
'
contacts
'
:
self
.
jsonify
_contacts
()
}
'
communities
'
:
data
_communit
ies
,
'
wallets
'
:
data
_wallets
,
'
contacts
'
:
data
_contacts
}
return
data
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