Browse Source

fix problems with __bool__ values

peewee3
Zolfa 4 years ago
parent
commit
8360b010bb
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      ca_manager/models/authority.py
  2. +1
    -1
      ca_manager/shell.py

+ 2
- 2
ca_manager/models/authority.py View File

@ -48,8 +48,8 @@ class Authority(CustomModel):
help_text='is root authority?',
)
def __bool__(self):
return os.path.exists(self.path)
# def __bool__(self):
# return os.path.exists(self.path)
@property
def path(self):


+ 1
- 1
ca_manager/shell.py View File

@ -51,7 +51,7 @@ class CAManagerShell(cmd.Cmd):
ca = self.ca_manager.ca[argv[0]]
if ca:
if ca != None:
ca_description = """
Certification authority: %s
--------------------------------------------------


Loading…
Cancel
Save