This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
ca_manager
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
2
Releases
0
Wiki
Activity
Browse Source
fix problems with __bool__ values
peewee3
Zolfa
4 years ago
parent
bed0274c1c
commit
8360b010bb
Signed by:
zolfa
GPG Key ID:
E1A43B038C4D6616
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
ca_manager/models/authority.py
+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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Write
Preview
Loading…
Cancel
Save