Commit graph

18 commits

Author SHA1 Message Date
7ac205846e people: escape one more username instance
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2022-08-25 17:48:45 +10:00
d8b5937710 people: Escape usernames when generating the people index page
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2022-08-25 16:10:21 +10:00
Pierre-Yves Chibon
26ca32d11d people: Do not try to chown the file, the cron already runs as apache
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-04-07 19:46:44 +00:00
Pierre-Yves Chibon
692647ed86 people: when making the people page account for home directory we can't get into
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-04-07 19:46:44 +00:00
Nils Philippsen
6811f7df63 make-people-page: Update copyright statements
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:30 +00:00
Nils Philippsen
1567f4d587 make-people-page: Remove stray trailing semicolon
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:30 +00:00
Nils Philippsen
d80642e913 make-people-page: Move filtering out of template
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
Nils Philippsen
03beee66af make-people-page: Catch some common problems
Skip over home directories which are unowned or owned by someone else
than the user, or if the user themselves is unknown, and report.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
Nils Philippsen
84a5c6db9e make-people-page: Loop over directories, not users
With IPA, enumerating users isn't easy and potentially expensive. Loop
over home directories instead. In the course, use pathlib.Path instead
of legacy interfaces for paths and pwd.getpwnam() to get information
about users instead of spawning external pipes.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
Nils Philippsen
1ad70d6c81 make-people-page: Use renamed logotext image
And use the Fedora blue as the background color of the page header.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
Nils Philippsen
a64eb7b65e make-people-page: Import one item per line
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
Nils Philippsen
440c7c7c1b make-people-page: Use Python 3
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-04-01 10:05:29 +00:00
aa421b4501 fix doctype declaration 2016-02-23 21:06:08 +00:00
Ralph Bean
b95c166ed7 bitwise OR. 2016-02-22 22:01:27 +00:00
Ralph Bean
4d127a14ca Typofix. 2016-02-22 21:53:07 +00:00
Ralph Bean
358da8257a Get this into unicode before handing off to jinja. 2016-02-22 21:51:12 +00:00
Ralph Bean
d0b9ce8efa Python shebang. 2016-02-22 21:39:08 +00:00
db48292784 Rename people script, add proper chown/chmod 2016-02-22 21:11:03 +00:00
Renamed from roles/people/files/make_people_page.py (Browse further)