瀏覽代碼

better comment

Guénaël Muller 6 年之前
父節點
當前提交
5b499a58d1
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      tracim/models/__init__.py

+ 4 - 2
tracim/models/__init__.py 查看文件

51
     # FIXME - G.M - 02-05-2018 - Check Zope/Sqlalchemy session conf.
51
     # FIXME - G.M - 02-05-2018 - Check Zope/Sqlalchemy session conf.
52
     # We use both keep_session=True for zope and
52
     # We use both keep_session=True for zope and
53
     # expire_on_commit=False for sessionmaker to keep session alive after
53
     # expire_on_commit=False for sessionmaker to keep session alive after
54
-    # commit ( in order  to not have trouble like #52 or
55
-    # detached objects problems).
54
+    # commit ( in order  to not have trouble like
55
+    # https://github.com/tracim/tracim_backend/issues/52
56
+    # or detached objects problems).
56
     # These problem happened because we use "commit" in our current code.
57
     # These problem happened because we use "commit" in our current code.
57
     # Understand what those params really mean and check if it can cause
58
     # Understand what those params really mean and check if it can cause
58
     # troubles somewhere else.
59
     # troubles somewhere else.
60
+    # see https://stackoverflow.com/questions/16152241/how-to-get-a-sqlalchemy-session-managed-by-zope-transaction-that-has-the-same-sc  # nopep8
59
     zope.sqlalchemy.register(
61
     zope.sqlalchemy.register(
60
         dbsession,
62
         dbsession,
61
         transaction_manager=transaction_manager,
63
         transaction_manager=transaction_manager,