1. 20 Jun, 2017 2 commits
  2. 06 Jun, 2017 2 commits
  3. 30 Nov, 2016 1 commit
  4. 25 Oct, 2016 1 commit
  5. 13 Apr, 2016 1 commit
  6. 15 Nov, 2015 2 commits
    • slapproxy: Teach slapproxy to handle non-ascii instance parameters · 347d33d6
      1. when forming instance parameters xml dict on client side, we cannot
         use str() to convert parameter_value to string - because it breaks e.g.
         this way:
      
         In [1]: s = u'Привет Мир!'
         In [2]: str(s)
         ---------------------------------------------------------------------------
         UnicodeEncodeError                        Traceback (most recent call
      
         UnicodeEncodeError: 'ascii' codec can't encode characters in position
         0-5: ordinal not in range(128)
      
         Fix is: convert arguments to unicode strings.
      
      2. when decoding xml on server side it was erroneously assumed to be
         always unicode, and this way xml.encode('utf-8') fails if xml is str
         but with non-ascii characters:
      
         In [3]: r = 'hello world'
      
         In [4]: r.encode('utf-8')
         Out[4]: 'hello world'
      
         In [5]: t = s.encode('utf-8')
      
         In [6]: t
         Out[6]: '\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82 \xd0\x9c\xd0\xb8\xd1\x80!'
      
         In [7]: t.encode('utf-8')
         ---------------------------------------------------------------------------
         UnicodeDecodeError                        Traceback (most recent call last)
      
         UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
      
         Fix is: don't assume xml string is unicode and decode it only, if it
                 is unicode, and leave as it is if it is just str.
      Kirill Smelkov committed
    • *: Factor opening sqlite db into separate function · 8bf68261
      Currently it is just sqlite3.connect(), but we'll want to add connection
      autotuning in the next patch, so before that let's consolidate all
      sqlite opening places in the code into one.
      Kirill Smelkov committed
  7. 16 Jul, 2015 1 commit
  8. 22 Apr, 2015 1 commit
  9. 05 Jan, 2015 1 commit
  10. 18 Nov, 2014 2 commits
  11. 14 Nov, 2014 1 commit
  12. 13 Nov, 2014 1 commit
  13. 10 Nov, 2014 10 commits
  14. 29 Jan, 2014 1 commit
  15. 14 Jan, 2014 2 commits
  16. 13 Jan, 2014 1 commit
  17. 13 Jun, 2013 2 commits
  18. 23 May, 2013 1 commit
  19. 11 May, 2013 2 commits
  20. 10 May, 2013 1 commit
  21. 03 May, 2013 1 commit
  22. 02 May, 2013 1 commit
  23. 30 Apr, 2013 1 commit
  24. 27 Mar, 2013 1 commit