Browse Source

set path as property of Authority base class

failed_true
Edoardo Putti 8 years ago
parent
commit
5adaefa47d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      certificate_requests.py

+ 5
- 1
certificate_requests.py View File

@ -84,7 +84,11 @@ class Authority(object):
def __init__(self, ca_id, name, ca_dir):
self.ca_id = ca_id
self.name = name
self.path = path
self.ca_dir = ca_dir
@property
def path(self):
return os.path.join(self.ca_dir, self.ca_id)
def generate(self):
raise NotImplementedError()


Loading…
Cancel
Save