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

Issue 1387041: fix proposal for issue 1575

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by gadaga
Modified:
6 months, 1 week ago
Reviewers:
B.V.
Visibility:
Public.

Patch Set 1 #

Total comments: 3

Patch Set 2 : inherit from Decimal #

Total comments: 1

Patch Set 3 : Fix proposal with unit test #

Total comments: 4

Patch Set 4 : use operator in unit test and add unit test in test_trytond #

Total comments: 1

Patch Set 5 : inherit float #

Total comments: 6

Patch Set 6 : Add context on functions, refund function, store Decimal value #

Total comments: 1

Patch Set 7 : modify functions order, change context argument on functions #

Patch Set 8 : reorder functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -5 lines) Patch
M trytond/backend/fields.py View 1 chunk +1 line, -1 line 0 comments Download
M trytond/protocols/datatype.py View 1 2 3 4 5 6 7 1 chunk +84 lines, -4 lines 0 comments Download
A trytond/tests/test_datatype.py View 3 4 5 6 7 1 chunk +194 lines, -0 lines 0 comments Download
M trytond/tests/test_tryton.py View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 30
ced
http://codereview.appspot.com/1387041/diff/1/2 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/1/2#newcode4 trytond/protocols/datatype.py:4: class Float(float): I think we should inherit from Decimal ...
13 years, 11 months ago (2010-05-28 15:58:40 UTC) #1
yangoon1
13 years, 11 months ago (2010-05-29 00:14:31 UTC) #2
ced
You should also write unittest
13 years, 11 months ago (2010-05-29 06:20:58 UTC) #3
ced
still missing unittest http://codereview.appspot.com/1387041/diff/6001/7001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/6001/7001#newcode5 trytond/protocols/datatype.py:5: class Float(Decimal): It should be: Float(Decimal, ...
13 years, 11 months ago (2010-05-31 19:05:06 UTC) #4
ced
Also don't forget to pass "--send_mail" to upload.py otherwise reviewers are not notified of new ...
13 years, 11 months ago (2010-05-31 22:17:27 UTC) #5
gadaga
13 years, 11 months ago (2010-06-01 09:00:07 UTC) #6
ced
You must also add the new test case in test_tryton.py http://codereview.appspot.com/1387041/diff/10001/11001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/10001/11001#newcode5 ...
13 years, 11 months ago (2010-06-01 09:23:28 UTC) #7
gadaga
http://codereview.appspot.com/1387041/diff/10001/11001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/10001/11001#newcode5 trytond/protocols/datatype.py:5: class Float(Decimal): On 2010/06/01 09:23:29, ced wrote: > Still ...
13 years, 11 months ago (2010-06-01 10:08:19 UTC) #8
gadaga
13 years, 11 months ago (2010-06-01 10:10:01 UTC) #9
ced
On 2010/06/01 10:08:19, gadaga wrote: > http://codereview.appspot.com/1387041/diff/10001/11001 > File trytond/protocols/datatype.py (right): > > http://codereview.appspot.com/1387041/diff/10001/11001#newcode5 > ...
13 years, 11 months ago (2010-06-01 10:26:07 UTC) #10
ced
http://codereview.appspot.com/1387041/diff/18001/19001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/18001/19001#newcode5 trytond/protocols/datatype.py:5: class Float(Decimal): It misses: __pow__ __rpow__ __long__ __complex__ __int__ ...
13 years, 11 months ago (2010-06-01 10:39:18 UTC) #11
B.V.
On 2010/06/01 10:26:07, ced wrote: > On 2010/06/01 10:08:19, gadaga wrote: > > http://codereview.appspot.com/1387041/diff/10001/11001 > ...
13 years, 11 months ago (2010-06-01 11:37:10 UTC) #12
ced
On 2010/06/01 11:37:10, B.V. wrote: > On 2010/06/01 10:26:07, ced wrote: > > On 2010/06/01 ...
13 years, 11 months ago (2010-06-01 11:53:30 UTC) #13
B.V.
On 2010/06/01 11:53:30, ced wrote: > On 2010/06/01 11:37:10, B.V. wrote: > > On 2010/06/01 ...
13 years, 11 months ago (2010-06-01 12:15:37 UTC) #14
B.V.
On 2010/06/01 12:15:37, B.V. wrote: > On 2010/06/01 11:53:30, ced wrote: > > On 2010/06/01 ...
13 years, 11 months ago (2010-06-02 12:32:04 UTC) #15
ced
On 2010/06/02 12:32:04, B.V. wrote: > On 2010/06/01 12:15:37, B.V. wrote: > > On 2010/06/01 ...
13 years, 11 months ago (2010-06-03 20:11:27 UTC) #16
gadaga
13 years, 11 months ago (2010-06-04 08:30:01 UTC) #17
ced
http://codereview.appspot.com/1387041/diff/28001/29001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/28001/29001#newcode7 trytond/protocols/datatype.py:7: super(Float, self).__init__() Missing value to __init__ http://codereview.appspot.com/1387041/diff/28001/29001#newcode8 trytond/protocols/datatype.py:8: self.__decimal ...
13 years, 11 months ago (2010-06-04 08:45:44 UTC) #18
gadaga
13 years, 11 months ago (2010-06-04 09:32:37 UTC) #19
gadaga
http://codereview.appspot.com/1387041/diff/28001/29001 File trytond/protocols/datatype.py (right): http://codereview.appspot.com/1387041/diff/28001/29001#newcode7 trytond/protocols/datatype.py:7: super(Float, self).__init__() On 2010/06/04 08:45:44, ced wrote: > Missing ...
13 years, 11 months ago (2010-06-04 09:32:48 UTC) #20
ced
I also think it will be more readable to define arithmetic functions in alphabetic order. ...
13 years, 11 months ago (2010-06-04 10:18:02 UTC) #21
gadaga
13 years, 11 months ago (2010-06-04 10:29:54 UTC) #22
ced
On 2010/06/04 10:29:54, gadaga wrote: > I will put roperator just under operator And also ...
13 years, 11 months ago (2010-06-04 12:23:33 UTC) #23
ced
Still missing all the other functions
13 years, 11 months ago (2010-06-04 12:25:44 UTC) #24
gadaga
13 years, 11 months ago (2010-06-04 12:57:15 UTC) #25
ced
Do you plan to add missing methods? If not tell me, I will do it.
13 years, 11 months ago (2010-06-04 13:59:40 UTC) #26
gadaga
On 2010/06/04 13:59:40, ced wrote: > Do you plan to add missing methods? > If ...
13 years, 11 months ago (2010-06-04 14:16:45 UTC) #27
ced
On 2010/06/04 14:16:45, gadaga wrote: > On 2010/06/04 13:59:40, ced wrote: > > Do you ...
13 years, 11 months ago (2010-06-04 18:08:31 UTC) #28
ced
Can be closed.
13 years, 8 months ago (2010-08-22 17:49:35 UTC) #29
ced
13 years, 5 months ago (2010-12-04 16:22:25 UTC) #30
Please close it as it stays in the queue of patch to review and this is
annoying.
Reviewers can not edit the issue.
Sign in to reply to this message.

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