change from print to print()
This commit is contained in:
parent
4287fb4c2c
commit
a1681278a2
1 changed files with 12 additions and 12 deletions
|
@ -23,7 +23,7 @@ def index():
|
|||
' JOIN user u ON p.user_id = u.id'
|
||||
' ORDER BY deleted ASC, revoked ASC, p.created DESC'
|
||||
).fetchall()
|
||||
print pubkeys[0]
|
||||
print(pubkeys[0])
|
||||
users = db.execute(
|
||||
'SELECT * FROM user WHERE id = ?', (g.user['id'],)
|
||||
).fetchone()
|
||||
|
@ -55,7 +55,7 @@ def create():
|
|||
key = splitkey.pop(0)
|
||||
comment = ' '.join(splitkey)
|
||||
fingerprint = base64.b64encode(hashlib.sha256(base64.b64decode(key)).digest()).rstrip("=")
|
||||
print fingerprint
|
||||
print(fingerprint)
|
||||
|
||||
db = get_db()
|
||||
ckfp = db.execute(
|
||||
|
@ -164,8 +164,8 @@ def revoke(id):
|
|||
@login_required
|
||||
def certs_index(id):
|
||||
|
||||
print "id : " + str(id)
|
||||
print "user id: " + str(g.user['id'])
|
||||
print("id : " + str(id))
|
||||
print("user id: " + str(g.user['id']))
|
||||
db = get_db()
|
||||
|
||||
user = db.execute(
|
||||
|
@ -188,9 +188,9 @@ def certs_index(id):
|
|||
' WHERE p.id = ?', (id,)
|
||||
).fetchall()
|
||||
|
||||
#print "PUBKEY: " + pubkey['fingerprint']
|
||||
#print "CERTIFICATES: " + str(certificates)
|
||||
#print "USERS" + (users)
|
||||
#print("PUBKEY: " + pubkey['fingerprint'])
|
||||
#print("CERTIFICATES: " + str(certificates))
|
||||
#print("USERS" + (users))
|
||||
return render_template('certificates/index.html', pubkey=pubkey,
|
||||
user=user, certificates=certificates)
|
||||
|
||||
|
@ -199,15 +199,15 @@ def certs_index(id):
|
|||
@login_required
|
||||
def certs_create(id):
|
||||
pubkey = get_pubkey(id)
|
||||
print "Pubkey-ID: " + str(id)
|
||||
print "create new certificate"
|
||||
print("Pubkey-ID: " + str(id))
|
||||
printr("create new certificate")
|
||||
return redirect(url_for('pubkeys.index'))
|
||||
|
||||
@bp.route('/<int:id>/certificates/revoke')
|
||||
@login_required
|
||||
def certs_revoke(id):
|
||||
print "Pubkey-ID: " + id[0]
|
||||
print "create new certificate"
|
||||
print "revoke certificate"
|
||||
print("Pubkey-ID: " + id[0])
|
||||
print("create new certificate")
|
||||
print("revoke certificate")
|
||||
return redirect(url_for('pubkeys.index'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue