Compare commits

..

4 Commits

Author SHA1 Message Date
5df742f6cf deleted __init__.pyc
will be regenerated and .gitignored automatically, won't it?
2025-05-16 06:41:45 +02:00
Florian Heß
c983f44fed Add substantial content to README.md 2025-05-15 21:16:00 +02:00
Florian Heß
c1ce35a44c markdown filter for content block 2025-05-15 21:16:00 +02:00
Florian Heß
d4cf1e092f Added files. 2025-05-15 21:16:00 +02:00
3 changed files with 2 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
FLASK_APP=ubhd_flask
FLASK_ENV=development

Binary file not shown.

View File

@@ -79,7 +79,7 @@ def init(params, altfields, defaults, check_remote_ip='0.0.0.0'):
try: try:
longname = addresses[value][0] longname = addresses[value][0]
except KeyError: except KeyError:
longname = "Heidelberg University Library (will forward)" longname = "Non-existent Enterprises Ltd (will forward)"
value = "ub" value = "ub"
return longname + f"<input type='hidden' name='adr' value='{value}'>" return longname + f"<input type='hidden' name='adr' value='{value}'>"
@@ -218,7 +218,7 @@ Dieser Hinweis kann geloescht werden.
""") + "\n".join(userinput) """) + "\n".join(userinput)
mail = EmailMessage() mail = EmailMessage()
mail['From'] = 'WWW-Formular <noreply@ub.uni-heidelberg.de>' mail['From'] = 'WWW-Formular <noreply@example.invalid'
#mail['From'] = data['mymail'] or 'WWW-Formular' #mail['From'] = data['mymail'] or 'WWW-Formular'
mail['To'] = adr mail['To'] = adr
del mail['Subject'] del mail['Subject']