Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 1864045: Remove cursor, user and context instead use a Transaction (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by ced
Modified:
13 years, 8 months ago
Reviewers:
bch, paepke, timitos, yangoon1
Visibility:
Public.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix Timitos's comments #

Total comments: 3

Patch Set 3 : Remove unused context in workflow #

Patch Set 4 : Fix key of Cache to include user and context #

Patch Set 5 : Fix undefined user #

Patch Set 6 : Fix translation in _operand_get of ir.rule #

Patch Set 7 : Add missing migration of webdav #

Patch Set 8 : Better localcontext init #

Patch Set 9 : Fix loop in domain_get of ir.rule #

Patch Set 10 : Remove wrong etc file #

Patch Set 11 : Fix workflow/expr.py and default in ir.lang #

Patch Set 12 : Fix user usage in ir.action #

Patch Set 13 : Better Report.parse signature #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5657 lines, -6216 lines) Patch
M doc/ref/index.rst View 1 chunk +1 line, -0 lines 0 comments Download
M doc/ref/models/fields.rst View 8 chunks +13 lines, -13 lines 0 comments Download
M doc/ref/models/models.rst View 10 chunks +39 lines, -40 lines 0 comments Download
A doc/ref/tools/singleton.rst View 1 chunk +14 lines, -0 lines 0 comments Download
A doc/ref/transaction.rst View 1 chunk +69 lines, -0 lines 0 comments Download
M doc/topics/install.rst View 1 chunk +1 line, -1 line 0 comments Download
M doc/topics/reports/index.rst View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -8 lines 0 comments Download
M doc/topics/views/index.rst View 3 chunks +3 lines, -3 lines 0 comments Download
M trytond/backend/mysql/table.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/backend/postgresql/table.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/backend/sqlite/table.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/ir/action.py View 1 2 3 4 5 6 7 8 9 10 11 21 chunks +175 lines, -207 lines 0 comments Download
M trytond/ir/attachment.py View 6 chunks +41 lines, -42 lines 0 comments Download
M trytond/ir/cron.py View 1 5 chunks +63 lines, -70 lines 0 comments Download
M trytond/ir/date.py View 1 chunk +1 line, -4 lines 0 comments Download
M trytond/ir/default.py View 6 chunks +36 lines, -38 lines 0 comments Download
M trytond/ir/lang.py View 1 2 3 4 5 6 7 8 9 10 6 chunks +56 lines, -66 lines 0 comments Download
M trytond/ir/model.py View 12 chunks +70 lines, -90 lines 0 comments Download
M trytond/ir/module/module.py View 14 chunks +171 lines, -193 lines 0 comments Download
M trytond/ir/property.py View 8 chunks +38 lines, -50 lines 0 comments Download
M trytond/ir/rule.py View 1 2 3 4 5 6 7 8 7 chunks +63 lines, -64 lines 0 comments Download
M trytond/ir/sequence.py View 4 chunks +47 lines, -60 lines 0 comments Download
M trytond/ir/translation.py View 1 26 chunks +220 lines, -230 lines 0 comments Download
M trytond/ir/trigger.py View 7 chunks +39 lines, -56 lines 0 comments Download
M trytond/ir/ui/menu.py View 5 chunks +38 lines, -47 lines 0 comments Download
M trytond/ir/ui/view.py View 1 2 3 4 6 chunks +59 lines, -56 lines 0 comments Download
M trytond/model/browse.py View 4 chunks +53 lines, -49 lines 0 comments Download
M trytond/model/cacheable.py View 2 chunks +23 lines, -18 lines 0 comments Download
M trytond/model/fields/binary.py View 1 chunk +1 line, -4 lines 0 comments Download
M trytond/model/fields/function.py View 2 chunks +9 lines, -24 lines 0 comments Download
M trytond/model/fields/many2many.py View 7 chunks +35 lines, -43 lines 0 comments Download
M trytond/model/fields/one2many.py View 8 chunks +33 lines, -43 lines 0 comments Download
M trytond/model/fields/property.py View 4 chunks +13 lines, -23 lines 0 comments Download
M trytond/model/fields/reference.py View 3 chunks +10 lines, -15 lines 0 comments Download
M trytond/model/model.py View 17 chunks +66 lines, -99 lines 0 comments Download
M trytond/model/modelsingleton.py View 2 chunks +27 lines, -41 lines 0 comments Download
M trytond/model/modelsql.py View 80 chunks +272 lines, -343 lines 0 comments Download
M trytond/model/modelstorage.py View 32 chunks +292 lines, -403 lines 0 comments Download
M trytond/model/modelview.py View 12 chunks +40 lines, -60 lines 0 comments Download
M trytond/model/modelworkflow.py View 4 chunks +53 lines, -66 lines 0 comments Download
M trytond/modules/__init__.py View 10 chunks +27 lines, -25 lines 0 comments Download
M trytond/protocols/dispatcher.py View 7 chunks +39 lines, -38 lines 0 comments Download
M trytond/protocols/webdav.py View 18 chunks +69 lines, -103 lines 0 comments Download
M trytond/report/report.py View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +40 lines, -42 lines 0 comments Download
M trytond/res/group.py View 1 chunk +5 lines, -6 lines 0 comments Download
M trytond/res/ir.py View 10 chunks +36 lines, -36 lines 0 comments Download
M trytond/res/request.py View 8 chunks +37 lines, -38 lines 0 comments Download
M trytond/res/user.py View 13 chunks +92 lines, -109 lines 0 comments Download
M trytond/security.py View 1 2 chunks +11 lines, -11 lines 0 comments Download
M trytond/test/model.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/test/mptt.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/test/test.py View 9 chunks +9 lines, -9 lines 0 comments Download
M trytond/test/trigger.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/tests/test_exportdata.py View 2 chunks +221 lines, -258 lines 0 comments Download
M trytond/tests/test_fields.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1623 lines, -1691 lines 0 comments Download
M trytond/tests/test_importdata.py View 2 chunks +197 lines, -228 lines 0 comments Download
M trytond/tests/test_modelsingleton.py View 2 chunks +60 lines, -83 lines 0 comments Download
M trytond/tests/test_mptt.py View 4 chunks +97 lines, -112 lines 0 comments Download
M trytond/tests/test_trigger.py View 3 chunks +326 lines, -330 lines 0 comments Download
M trytond/tests/test_tryton.py View 2 chunks +39 lines, -41 lines 0 comments Download
M trytond/tools/convert.py View 30 chunks +63 lines, -72 lines 0 comments Download
M trytond/tools/misc.py View 1 2 3 6 chunks +24 lines, -24 lines 0 comments Download
A trytond/tools/singleton.py View 1 chunk +16 lines, -0 lines 0 comments Download
A trytond/transaction.py View 1 chunk +128 lines, -0 lines 0 comments Download
M trytond/webdav/webdav.py View 7 8 9 10 11 12 24 chunks +82 lines, -114 lines 0 comments Download
M trytond/wizard/wizard.py View 9 chunks +26 lines, -35 lines 0 comments Download
M trytond/workflow/expr.py View 2 chunks +17 lines, -34 lines 0 comments Download
M trytond/workflow/workflow.py View 1 2 16 chunks +177 lines, -202 lines 0 comments Download

Messages

Total messages: 24
ced
13 years, 9 months ago (2010-07-25 21:25:57 UTC) #1
yangoon1
13 years, 9 months ago (2010-07-25 23:12:40 UTC) #2
timitos
http://codereview.appspot.com/1864045/diff/1/15 File trytond/ir/cron.py (right): http://codereview.appspot.com/1864045/diff/1/15#newcode190 trytond/ir/cron.py:190: cursor.rollback() transaction.cursor.rollback() http://codereview.appspot.com/1864045/diff/1/24 File trytond/ir/translation.py (right): http://codereview.appspot.com/1864045/diff/1/24#newcode379 trytond/ir/translation.py:379: ctx ...
13 years, 8 months ago (2010-07-26 06:17:54 UTC) #3
ced
13 years, 8 months ago (2010-07-26 07:27:25 UTC) #4
timitos
works for me now
13 years, 8 months ago (2010-07-26 20:01:09 UTC) #5
timitos
http://codereview.appspot.com/1864045/diff/8001/9065 File trytond/workflow/workflow.py (right): http://codereview.appspot.com/1864045/diff/8001/9065#newcode522 trytond/workflow/workflow.py:522: if context is None: can this be removed?
13 years, 8 months ago (2010-07-26 20:04:47 UTC) #6
ced
13 years, 8 months ago (2010-07-26 21:17:21 UTC) #7
ced
13 years, 8 months ago (2010-07-26 21:33:22 UTC) #8
timitos
found this in my server log: Traceback (most recent call last): File "/home/kp/tryton/dev/trytond/trytond/protocols/dispatcher.py", line 136, ...
13 years, 8 months ago (2010-07-27 05:39:12 UTC) #9
bch
http://codereview.appspot.com/1864045/diff/8001/9013 File trytond/ir/attachment.py (right): http://codereview.appspot.com/1864045/diff/8001/9013#newcode43 trytond/ir/attachment.py:43: table = TableHandler(cursor, self, module_name) What about using Transaction() ...
13 years, 8 months ago (2010-07-27 07:01:45 UTC) #10
ced
http://codereview.appspot.com/1864045/diff/8001/9013 File trytond/ir/attachment.py (right): http://codereview.appspot.com/1864045/diff/8001/9013#newcode43 trytond/ir/attachment.py:43: table = TableHandler(cursor, self, module_name) On 2010/07/27 07:01:45, bch ...
13 years, 8 months ago (2010-07-27 07:11:25 UTC) #11
ced
13 years, 8 months ago (2010-07-27 07:30:26 UTC) #12
paepke
got the following traceback: Traceback (most recent call last): File "/trytond/protocols/netrpc.py", line 47, in run ...
13 years, 8 months ago (2010-07-29 20:11:23 UTC) #13
ced
On 2010/07/29 20:11:23, paepke wrote: > got the following traceback: > Traceback (most recent call ...
13 years, 8 months ago (2010-07-30 07:18:53 UTC) #14
timitos
On 2010/07/30 07:18:53, ced wrote: > On 2010/07/29 20:11:23, paepke wrote: > > got the ...
13 years, 8 months ago (2010-07-30 08:46:54 UTC) #15
ced
13 years, 8 months ago (2010-07-30 10:08:24 UTC) #16
paepke
On 2010/07/30 10:08:24, ced wrote: > had just tested it. can confirm with german vs. ...
13 years, 8 months ago (2010-07-30 10:14:10 UTC) #17
ced
13 years, 8 months ago (2010-07-30 22:37:50 UTC) #18
ced
13 years, 8 months ago (2010-08-02 18:14:00 UTC) #19
ced
13 years, 8 months ago (2010-08-10 19:06:21 UTC) #20
ced
13 years, 8 months ago (2010-08-10 19:09:27 UTC) #21
ced
13 years, 8 months ago (2010-08-10 19:57:33 UTC) #22
ced
13 years, 8 months ago (2010-08-10 20:02:40 UTC) #23
ced
13 years, 8 months ago (2010-08-12 19:26:30 UTC) #24

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b