Skip to content

Commit 46c1a6c

Browse files
authored
Merge pull request #332 from hongquan/feature/merge-upstream-jan-2025-2nd-attempt
Merge from upstream updates
2 parents a01f849 + f6e5f8c commit 46c1a6c

File tree

92 files changed

+18596
-77635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+18596
-77635
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- 'doc/**'
1313
- 'src/pretalx/locale/**'
1414

15+
permissions:
16+
contents: write
17+
checks: write
18+
pull-requests: write
19+
1520
concurrency:
1621
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1722
cancel-in-progress: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*.cover
4747
.hypothesis/
48+
.mypy_cache
4849

4950
# Translations
5051
*.mo

doc/administrator/installation.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ flavours – on Ubuntu-like systems, you will need packages like:
8484
- ``build-essential``
8585
- ``libssl-dev``
8686
- ``python3-dev``
87+
- ``python3-venv``
8788
- ``gettext``
8889

8990

@@ -117,7 +118,7 @@ like this – you’ll only have to run this command once (that is, only once pe
117118
Python version – when you upgrade from Python 3.13 to 3.14, you’ll need to
118119
remove the old ``venv`` directory and create it again the same way)::
119120

120-
$ python -m venv /var/pretalx/venv
121+
$ python3 -m venv /var/pretalx/venv
121122

122123
Now, activate the virtual environment – you’ll have to run this command once
123124
per session whenever you’re interacting with ``python``, ``pip`` or
@@ -127,14 +128,14 @@ per session whenever you’re interacting with ``python``, ``pip`` or
127128

128129
Now, upgrade your pip and then install the required Python packages::
129130

130-
(venv)$ pip install --user -U pip setuptools wheel gunicorn
131+
(venv)$ pip install -U pip setuptools wheel gunicorn
131132

132133
.. note:: You may need to replace all following mentions of ``pip`` with ``pip3``.
133134

134135
+-----------------+------------------------------------------------------------------------+
135136
| Database | Command |
136137
+=================+========================================================================+
137-
| SQLite | ``pip install --user --upgrade-strategy eager -U pretalx`` |
138+
| SQLite | ``pip install --upgrade-strategy eager -U pretalx`` |
138139
+-----------------+------------------------------------------------------------------------+
139140
| PostgreSQL | ``pip install --upgrade-strategy eager -U "pretalx[postgres]"`` |
140141
+-----------------+------------------------------------------------------------------------+
@@ -174,7 +175,7 @@ adjust the content to fit your system::
174175
User=pretalx
175176
Group=pretalx
176177
WorkingDirectory=/var/pretalx
177-
ExecStart=/var/pretalx/.local/bin/gunicorn pretalx.wsgi \
178+
ExecStart=/var/pretalx/venv/bin/gunicorn pretalx.wsgi \
178179
--name pretalx --workers 4 \
179180
--max-requests 1200 --max-requests-jitter 50 \
180181
--log-level=info --bind=127.0.0.1:8345
@@ -198,8 +199,8 @@ To run Celery workers, you’ll need a second service
198199
[Service]
199200
User=pretalx
200201
Group=pretalx
201-
ExecStart=/var/pretalx/venv/bin/celery -A pretalx.celery_app worker -l info
202202
WorkingDirectory=/var/pretalx
203+
ExecStart=/var/pretalx/venv/bin/celery -A pretalx.celery_app worker -l info
203204
Restart=on-failure
204205

205206
[Install]

doc/api/fundamentals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ If you see the ``o`` parameter on a resource, you can use it to sort the result
135135
set by one of the allowed fields. Prepend a ``-`` to the field name to reverse
136136
the sort order.
137137

138-
.. _CSRF policies: https://docs.djangoproject.com/en/stable/ref/csrf/#ajax
138+
.. _CSRF policies: https://docs.djangoproject.com/en/stable/howto/csrf/#using-csrf-protection-with-ajax

doc/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Release Notes
44
=============
55

6+
- :feature:`schedule` When you embed the pretalx widget on an external page, clicking on session links will open the sessions in a new tab, so attendees won't have to try to navigate back to your home page.
67
- :feature:`schedule` Organisers can now configure additional links to show in the top menu next to "Schedule", "Sessions", "Speakers", handy for links back to the conference website, streams, etc.
78
- :feature:`orga` Organisers can now configure footer links that will be shown on all schedule pages.
89
- :feature:`cfp` pretalx will now send an email after a user changes their password, notifying them of the change.
@@ -697,7 +698,7 @@ Release Notes
697698
- :bug:`-` There was no possibility to reset a user’s API token.
698699
- :bug:`-` If an organiser changed a speaker’s email address, they could assign an address already in use in the pretalx instance, resulting in buggy behaviour all around.
699700
- :release:`0.5.0 <2018-03-07>`
700-
- :feature:`-` pretalx now features a Plugin API, allowing to install custom plugins. Plugins can add their own exporters, and hook into plugin hooks. You can enable or disable plugins per event.
701+
- :feature:`-` pretalx now features a Plugin API, allowing to install custom plugins. Plugins can add their own exporters, and hook into plugin hooks. You can enable or disable plugins per event. You can find the plugin developer documentation :ref:`here<plugin-index>`.
701702
- :feature:`340` Organisers can now decide if reviewers should have to submit a score or a text with their review.
702703
- :feature:`93` Organisers can provide room-based information for speakers, and send it automatically in the emails about talk scheduling.
703704
- :feature:`318` The list of submissions is now better searchable.

doc/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@
109109
# Output file base name for HTML help builder.
110110
htmlhelp_basename = 'pretalxdoc'
111111

112-
# Example configuration for intersphinx: refer to the Python standard library.
113-
intersphinx_mapping = {'https://docs.python.org/': ('https://docs.python.org/3', None)}
114-
115112
linkcheck_ignore = [
116113
'https://pretalx.yourdomain.com',
117114
'http://localhost',

doc/user/markdown.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ on the right:
6767
| .. code-block:: md | .. raw:: html |
6868
| | |
6969
| ***** | <hr> |
70+
| ----- | <hr> |
71+
+------------------------------------------+--------------------------------------+
72+
| .. code-block:: md | .. raw:: html |
73+
| | |
74+
| ~~strikethrough~~ | <del>strikethough</del> |
7075
+------------------------------------------+--------------------------------------+
7176

7277

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies = [
6060
"vobject~=0.9.0",
6161
"whitenoise~=6.8.0",
6262
"zxcvbn~=4.4.0",
63-
"pretalx_pages @ git+https://github.com/fossasia/eventyay-talk-pages.git@main",
63+
"pretalx_pages @ git+https://github.com/hongquan/eventyay-talk-pages.git@2956f13",
6464
"pretalx_venueless @ git+https://github.com/fossasia/eventyay-talk-video.git@main",
6565
"pretalx-downstream @ git+https://github.com/fossasia/eventyay-talk-downstream.git@main",
6666
"django-allauth~=0.63.3",

src/pretalx/agenda/templates/agenda/base.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@
2121
{{ request.event.urls.base }}
2222
{% endif %}
2323
{% endblock nav_link %}
24+
2425
{% block header_tabs %}
25-
<a href="{{ request.event.urls.schedule }}" class='header-tab {% if "/schedule/" in request.path_info %}active{% endif %}'>
26+
<a href="{{ request.event.urls.schedule }}" class="header-tab {% if "/schedule/" in request.path_info %}active{% endif %}">
2627
<i class="fa fa-calendar"></i> {{ phrases.schedule.schedule }}
2728
</a>
2829
{% if request.event.display_settings.schedule_display != "list" %}
29-
<a href="{{ request.event.urls.talks }}" class='header-tab {% if "/talk/" in request.path_info %} active{% endif %}'>
30+
<a href="{{ request.event.urls.talks }}" class="header-tab {% if "/talk/" in request.path_info %} active{% endif %}">
3031
<i class="fa fa-comments-o"></i> {{ phrases.schedule.sessions }}
3132
</a>
3233
{% endif %}
33-
<a href="{{ request.event.urls.speakers }}" class='header-tab {% if "/speaker/" in request.path_info %} active{% endif %}'>
34+
<a href="{{ request.event.urls.speakers }}" class="header-tab {% if "/speaker/" in request.path_info %} active{% endif %}">
3435
<i class="fa fa-group"></i> {{ phrases.schedule.speakers }}
3536
</a>
3637
{% for link in header_links %}
@@ -50,7 +51,6 @@
5051
{% endblock header_tabs %}
5152

5253
{% block content %}
53-
{% include "agenda/header_row.html" %}
5454
{% if not request.event|get_feature_flag:"show_schedule" and not request.user.is_anonymous and not hide_visibility_warning %}
5555
<div id="event-nonpublic" class="d-print-none">
5656
<i class="fa fa-user-secret"></i>

src/pretalx/agenda/templates/agenda/header_row.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)