Browse Source

print info for certificate on more lines

master
Edoardo Putti 7 years ago
parent
commit
0ef170a035
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      models/certificate.py

+ 5
- 1
models/certificate.py View File

@ -46,7 +46,11 @@ class Certificate(customModel.CustomModel):
)
def __repr__(self):
return ( "%s %s for %s on %s issued by %s"%(self.__class__.__name__, self.cert_id, self.receiver, self.date_issued, self.authority))
msg = """<%s:%s> for %s
signed %s by %s"""
return (
msg % (self.__class__.__name__, self.cert_id, self.receiver, self.date_issued, self.authority)
)
def __bool__(self):
return os.path.exists(self.path)

Loading…
Cancel
Save