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

Issue 121052: Add new safe eval for trytond (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 8 months ago by ced1
Modified:
16 years, 8 months ago
Reviewers:
bch, yangoon1
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add cache on Expression in safe_eval #

Patch Set 3 : Don't use Genshi because it is not safe #

Patch Set 4 : Uncomment code #

Patch Set 5 : Add some opcode and __builtins__ #

Patch Set 6 : Fix to work for Python < 2.6 #

Patch Set 7 : Only __subclasses__ is not allowed #

Total comments: 1

Patch Set 8 : Use set instead of list for _ALLOWED_CODES #

Patch Set 9 : Add dict to globals #

Patch Set 10 : Remove etc/trytond.conf #

Patch Set 11 : Remove wrong test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -31 lines) Patch
M CHANGELOG View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M trytond/backend/postgresql/database.py View 2 chunks +2 lines, -1 line 0 comments Download
M trytond/backend/sqlite/database.py View 2 chunks +2 lines, -1 line 0 comments Download
M trytond/ir/cron.py View 2 chunks +2 lines, -1 line 0 comments Download
M trytond/ir/default.py View 2 chunks +2 lines, -2 lines 0 comments Download
M trytond/ir/lang.py View 3 chunks +4 lines, -3 lines 0 comments Download
M trytond/ir/module/module.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M trytond/ir/rule.py View 2 chunks +2 lines, -2 lines 0 comments Download
M trytond/model/browse.py View 1 chunk +2 lines, -2 lines 0 comments Download
M trytond/model/fields/reference.py View 2 chunks +2 lines, -1 line 0 comments Download
M trytond/model/modelstorage.py View 4 chunks +4 lines, -3 lines 0 comments Download
M trytond/model/modelview.py View 2 chunks +2 lines, -2 lines 0 comments Download
M trytond/modules/__init__.py View 1 chunk +2 lines, -1 line 0 comments Download
M trytond/res/user.py View 2 chunks +2 lines, -2 lines 0 comments Download
M trytond/tests/test_tryton.py View 3 4 5 6 7 8 9 10 2 chunks +27 lines, -1 line 0 comments Download
M trytond/tools/convert.py View 6 chunks +7 lines, -5 lines 0 comments Download
M trytond/tools/misc.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +43 lines, -0 lines 0 comments Download
M trytond/webdav/webdav.py View 2 chunks +2 lines, -2 lines 0 comments Download
M trytond/workflow/expr.py View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 23
ced1
16 years, 8 months ago (2009-09-21 10:09:08 UTC) #1
bch
I'm a bit worried because safe_eval is quite slow. Since most of the "eval-ed" strings ...
16 years, 8 months ago (2009-09-21 13:54:48 UTC) #2
ced1
On 2009/09/21 13:54:48, bch wrote: > I'm a bit worried because safe_eval is quite slow. ...
16 years, 8 months ago (2009-09-21 14:18:18 UTC) #3
ced1
16 years, 8 months ago (2009-09-21 14:33:14 UTC) #4
bch
On 2009/09/21 14:18:18, ced wrote: >> I'm a bit worried because safe_eval is quite slow. ...
16 years, 8 months ago (2009-09-21 14:45:32 UTC) #5
ced1
On 2009/09/21 14:45:32, bch wrote: > On 2009/09/21 14:18:18, ced wrote: > >> Since most ...
16 years, 8 months ago (2009-09-21 14:51:53 UTC) #6
ced1
16 years, 8 months ago (2009-09-21 17:07:57 UTC) #7
ced1
16 years, 8 months ago (2009-09-21 17:10:22 UTC) #8
ced1
16 years, 8 months ago (2009-09-22 09:54:18 UTC) #9
ced1
16 years, 8 months ago (2009-09-22 10:19:58 UTC) #10
bch
On 2009/09/22 10:19:58, ced wrote: > OK for me
16 years, 8 months ago (2009-09-22 11:01:54 UTC) #11
ced1
16 years, 8 months ago (2009-09-22 11:46:50 UTC) #12
bch
http://codereview.appspot.com/121052/diff/1113/107 File trytond/tools/misc.py (right): http://codereview.appspot.com/121052/diff/1113/107#newcode569 Line 569: _ALLOWED_CODES = [dis.opmap[x] for x in [ "_ALLOWED_CODES ...
16 years, 8 months ago (2009-09-22 11:49:12 UTC) #13
ced1
16 years, 8 months ago (2009-09-22 11:54:59 UTC) #14
ced1
16 years, 8 months ago (2009-09-23 09:14:57 UTC) #15
ced1
16 years, 8 months ago (2009-09-23 09:15:33 UTC) #16
bch
On 2009/09/23 09:15:33, ced wrote: > OK
16 years, 8 months ago (2009-09-23 10:27:42 UTC) #17
yangoon1
Testing.
16 years, 8 months ago (2009-09-24 09:51:07 UTC) #18
ced1
16 years, 8 months ago (2009-09-24 11:14:23 UTC) #19
yangoon1
I don't know for sure, if it is related to this patch, but printing of ...
16 years, 8 months ago (2009-09-24 12:47:23 UTC) #20
ced1
On 2009/09/24 12:47:23, yangoon wrote: > I don't know for sure, if it is related ...
16 years, 8 months ago (2009-09-24 16:13:19 UTC) #21
yangoon1
just to give a liitle feedback: running with this patch discovered a wrong import in ...
16 years, 8 months ago (2009-09-25 21:31:04 UTC) #22
yangoon1
16 years, 8 months ago (2009-09-27 13:31:19 UTC) #23
On 2009/09/25 21:31:04, yangoon wrote:
> just to give a liitle feedback: running with this patch discovered a wrong
> import in modules, that was not detected before.

forget it, it was removed function send_email, that caused wrong import...
Sign in to reply to this message.

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