Skip to content
Snippets Groups Projects
  1. Apr 29, 2017
  2. Apr 24, 2017
  3. Apr 22, 2017
  4. Apr 21, 2017
  5. Apr 19, 2017
  6. Apr 18, 2017
  7. Apr 15, 2017
  8. Apr 14, 2017
  9. Apr 12, 2017
    • Philipp Hörist's avatar
      Make PGP encoding configurable · 78b562f7
      Philipp Hörist authored
      python-gnupg uses latin1 as default encoding because GPG itself uses
      latin1 as default.
      We should not override this default with getpreferredencoding, because
      getpreferredencoding maybe returns something else than what GPG is configured
      on that system.
      
      Example: On Windows
      GPG is run in default mode with 'latin1'
      getpreferredencoding returns 'cp1252'
      
      The approach would be now to default to latin1 as it is GPGs default.
      And if the User sets a different ecoding for GPG he has to set it in
      Gajim aswell.
      78b562f7
    • Philipp Hörist's avatar
      Add version check for python-gnupg · a2785ba3
      Philipp Hörist authored
      a2785ba3
    • Philipp Hörist's avatar
      Refactor exception handling for logger · a51ea32d
      Philipp Hörist authored
      - Handle exceptions inside write() instead of propagating the
          exception
      - Add error message to exception
      - Add dispatch() method in logger
      a51ea32d
    • Philipp Hörist's avatar
      Simplify log_message() · 54eb1cbb
      Philipp Hörist authored
      - Pass EventObj instead of variables
      - decrease indent level
      - check all conditions inside log_message() not before calling
      - fixed bug where gc private messages where not logged with the correct jid
      54eb1cbb
  10. Apr 10, 2017
  11. Apr 08, 2017
  12. Apr 06, 2017
    • Philipp Hörist's avatar
      Simplify sending message · bbb5c0f5
      Philipp Hörist authored
      - Dont use callbacks, they have no gain in that situation and make the code hard to read
      - pass the whole object to a new Event instead of many vars
      bbb5c0f5
  13. Apr 04, 2017
  14. Mar 31, 2017
  15. Mar 30, 2017
    • Markus Böhme's avatar
      Use the same named tuple for related methods for conversation loading · 21d15dec
      Markus Böhme authored
      Both methods get_conversation_for_date and search_log in the logger
      module are related to the loading of conversations and both return a
      list of messages from the log. Therefore, it makes sense that both of
      them have the same return type.
      
      Remove the named tuple type specific to search_log and convert the
      method to return tuples of type Message instead. As a side effect of
      this change, search_log now also returns values from the additional_data
      column in the log database.
      21d15dec
    • Markus Böhme's avatar
      Make conversation loading in the history window use named tuples · e735bfe7
      Markus Böhme authored
      The logger method get_conversation_for_date has previously been
      converted to return a list of named tuples. Now pass these tuples on to
      the method that actually inserts the conversation's messages into the
      textbuffer. Also rename two related methods in the history window:
        -  _add_lines_for_date => _load_conversation
        -  _add_new_line => _add_message
      e735bfe7
    • Markus Böhme's avatar
      Convert get_conversation_for_date to return named tuples · 65e926c1
      Markus Böhme authored
      The get_conversation_for_date method in the logger module returns a
      list of bare tuples. Knowledge of how to pack and unpack the many
      individual components of the tuples is split between the caller and
      the callee, making the method hard to maintain and ugly to use.
      Therefore, convert the method to return named tuple instead.
      65e926c1
    • Markus Böhme's avatar
Loading