Commit 07047689 authored by Jakob Marten's avatar Jakob Marten
Browse files

Merge branch 'pter2.0' into grav

parents c0dc0426 510a581a
......@@ -228,15 +228,15 @@ class ProtocolPad(BasePad):
isFachgruppenvollversammlung: bool = False, isApproved: bool = False, gremium: Gremium = None):
self.gremium = gremium or DEFAULT_GREMIUM
self.date = date
super().__init__(source)
self.isApproved = isApproved
self.isFachgruppenvollversammlung = isFachgruppenvollversammlung
super().__init__(source)
def __repr__(self):
return super(ProtocolPad, self).__repr__()[:-1] + f", {self.date})"
def DEFAULT_DISPLAY_NAME(self):
return f"Protokoll {self.gremium.name} {self.date.strftime('%d.%m.%Y')}"
return f"Protokoll {self.gremium.name} {self.date.strftime('%Y-%m-%d')}" + " - Fachgruppenvollversammlung"*self.isFachgruppenvollversammlung
def sendMailAsUnapproved(self) -> bool:
sender = MailParticipant(LDAP_MAIL, LDAP_NAME)
......@@ -301,6 +301,9 @@ class PadCollection(BasePad):
def __init__(self, source: SourceTypes):
super().__init__(source)
def DEFAULT_DISPLAY_NAME(self):
return f"PadCollection"
def getPads(self) -> Dict[str, List[BasePad]]:
"""
Parsing the protocollink-Pad for urls.
......
Supports Markdown
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