Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fachrat Informatik
pter
Commits
07047689
Commit
07047689
authored
Jul 18, 2020
by
Jakob Marten
Browse files
Merge branch 'pter2.0' into grav
parents
c0dc0426
510a581a
Changes
1
Hide whitespace changes
Inline
Side-by-side
linkToPDF2.py
View file @
07047689
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment