Commit 66ead555 authored by marco's avatar marco
Browse files

Add get_state_name get_state_glyph to class Protocol

parent f73321d1
......@@ -236,6 +236,24 @@ class Protocol(DatabaseModel):
def is_done(self):
return self.done
def get_state_glyph(self):
if self.is_done():
state = "unchecked" #"Fertig"
if self.public:
state = "check" #"Veröffentlicht"
else:
state = "pencil" #"Geplant"
return state
def get_state_name(self):
if self.is_done():
state = "Fertig"
if self.public:
state = "Veröffentlicht"
else:
state = "Geplant"
return state
def get_identifier(self):
if self.pad_identifier is not None:
return self.pad_identifier
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment