1. 12 8月, 2015 4 次提交
  2. 11 8月, 2015 1 次提交
  3. 18 6月, 2015 3 次提交
  4. 16 6月, 2015 1 次提交
    • A
      daklib/ls.py: manage our own database session · 3eeb7044
      Ansgar Burchardt 提交于
      session_wrapper gets confused by generators: let "f" be a generator
      making use of a database session:
      
          def wrapped_f():
            session = DBConn().session()
            try:
              return f(session)
            finally:
              session.close()
      
          for item in wrapped_f():
            do_something(item)
      
      will leak database sessions as the implementation of "f" will only be
      invoked from the for-loop. However at this time the "finally" block
      closing the session has already run. SQLAlchemy will helpfully reopen
      the session, but it will not be closed in the end.
      3eeb7044
  5. 14 6月, 2015 3 次提交
  6. 12 6月, 2015 4 次提交
  7. 11 6月, 2015 3 次提交
  8. 10 6月, 2015 1 次提交
  9. 09 6月, 2015 5 次提交
  10. 08 6月, 2015 2 次提交
  11. 06 6月, 2015 3 次提交
  12. 29 5月, 2015 2 次提交
  13. 19 5月, 2015 1 次提交
    • A
      Re-enable TLS for LDAP · 81ab2a92
      Ansgar Burchardt 提交于
      CACERTFILE now must point to a CA, using service certificates directly
      doesn't work.
      
      Also use per-connection settings for TLS. Note that the order of
      set_option calls matters (setting ldap.OPT_X_TLS_NEWCTX first
      fails)...
      81ab2a92
  14. 16 5月, 2015 1 次提交
  15. 18 3月, 2015 1 次提交
  16. 04 2月, 2015 1 次提交
    • A
      Rename exception. · f09f34fc
      Ansgar Burchardt 提交于
      Also inherit from Reject so a proper rejection message is shown
      instead of a backtrace.
      f09f34fc
  17. 06 12月, 2014 1 次提交
  18. 27 11月, 2014 3 次提交