1. 17 May, 2018 3 commits
    • Lukas Fleischer's avatar
      Use modern format strings in notification messages · 6367dfd2
      Lukas Fleischer authored
      User modern Python format() strings with curly braces. Also, convert all
      placeholders to named arguments. This allows translators to reorder
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
    • Lukas Fleischer's avatar
      Localize notification emails · f7a57c82
      Lukas Fleischer authored
      Add support for translating notification emails and send localized
      notifications, based on the user's language preferences. Also, update
      the translations Makefile to add strings from the notification script
      to the message catalog.
      Implements FS#31850.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
    • Lukas Fleischer's avatar
      Refactor the notification script · f3b4c5c6
      Lukas Fleischer authored
      Reimplement most of the notification script logic. Create a separate
      class for each notification type. Each class provides methods for
      generating the list of recipients, the message subject, the message
      body, the references to add at the end of the message and the message
      headers. Additionally, a method for sending notification emails is
      One major benefit of the new implementation is that both the generation
      of recipients and message contents are much more flexible. For example,
      it is now easily possible to make user-specific adjustments to every
      single notification of a batch.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
  2. 16 May, 2018 1 commit
  3. 10 May, 2018 1 commit
    • Lukas Fleischer's avatar
      Erase login IP addresses after seven days · ce933602
      Lukas Fleischer authored
      Add a script to periodically remove old IP addresses from the users
      The login IP addresses are stored for spam protection and to prevent
      from abuse. It is quite unlikely that we ever need the IP address of a
      user whose last login is more than a week old. It makes sense to remove
      such IP addresses to protect our users' privacy.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
  4. 22 Apr, 2018 1 commit
    • Eli Schwartz's avatar
      config: allow reading both the defaults file and the modified config · 97c5bcec
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      In the process, rename config.proto to config.defaults (because that is
      what it is now).
      Also use dict.get('key', default_value) when querying os.environ, rather
      than an if block, as it is more pythonic/readable/concise, and reduces
      the number of dict lookups.
      This change allows aurweb configuration to be done via either:
      - copying config.defaults to config and modifying values
      - creating a new config only containing modified values, next to a
        config.defaults containing unmodified values
      The motivation for this change is to enable ansible configuration in our
      flagship deployment by storing only changed values, and deferring to
      config.defaults otherwise.
      A side benefit is, it is easier to see what has changed by inspecting
      only the site configuration file.
      If a config.defaults file does not exist next to $AUR_CONFIG or in
      $AUR_CONFIG_DEFAULTS, it is ignored and *all* values are expected to
      live in the modified config file.
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
  5. 08 Apr, 2018 1 commit
  6. 13 Mar, 2018 1 commit
  7. 21 Jan, 2018 1 commit
  8. 08 Nov, 2017 1 commit
  9. 25 Aug, 2017 1 commit
  10. 08 Aug, 2017 1 commit
  11. 01 Aug, 2017 1 commit
  12. 25 Jul, 2017 1 commit
  13. 22 Jul, 2017 1 commit
  14. 26 Apr, 2017 1 commit
  15. 25 Apr, 2017 1 commit
  16. 24 Apr, 2017 3 commits
  17. 23 Apr, 2017 3 commits
  18. 19 Apr, 2017 1 commit
  19. 06 Apr, 2017 1 commit
  20. 25 Jan, 2017 2 commits
  21. 23 Jan, 2017 1 commit
  22. 23 Dec, 2016 1 commit
  23. 20 Dec, 2016 2 commits
  24. 13 Nov, 2016 1 commit
  25. 17 Oct, 2016 3 commits
  26. 11 Oct, 2016 3 commits
  27. 08 Oct, 2016 1 commit
    • Lukas Fleischer's avatar
      Reorganize Git interface scripts · d4fe77ac
      Lukas Fleischer authored
      Move the Git interface scripts from git-interface/ to aurweb/git/. Use
      setuptools to automatically create wrappers which can be installed using
      `python3 setup.py install`. Update the configuration files, the test
      suite as well as the INSTALL and README files to reflect these changes.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
  28. 29 Sep, 2016 1 commit