Browse Source

update function to print authorities and requests

master
Edoardo Putti 8 years ago
parent
commit
77aa76e242
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      ca_shell.py

+ 1
- 6
ca_shell.py View File

@ -168,13 +168,8 @@ class CAManagerShell(cmd.Cmd, object):
def print_available_authorities(ca_manager):
for i, ca_item in enumerate(ca_manager.ca):
(ca_id, ca_name, ca_type) = ca_item
print("- %d : [%3s] %-15s (%s)" % (i ,ca_type, ca_id, ca_name))
else:
print("No available CA")
print("- %d : %s" % (i , ca_item))
def print_available_requests(ca_manager):
for i, request in enumerate(ca_manager.request):
print("- %d : %s" % (i, request))
else:
print("No requests")

Loading…
Cancel
Save