Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 11003016: Added script for copying external filterlists into existing repositories (Closed)

Created:
June 20, 2013, 12:06 p.m. by Thomas Greiner
Modified:
June 25, 2013, 12:21 p.m.
Visibility:
Public.

Description

Added script for copying external filterlists into existing repositories

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -0 lines) Patch
M .sitescripts.example View 1 1 chunk +5 lines, -0 lines 0 comments Download
A sitescripts/extensions/bin/updateExternalFilterlists.py View 1 1 chunk +74 lines, -0 lines 3 comments Download

Messages

Total messages: 6
Thomas Greiner
Not sure whether it's worth it or not as of right now but if there ...
June 20, 2013, 12:19 p.m. (2013-06-20 12:19:06 UTC) #1
Thomas Greiner
Changed reviewer for this issue.
June 24, 2013, 9:59 a.m. (2013-06-24 09:59:02 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/11003016/diff/1/.sitescripts.example File .sitescripts.example (right): http://codereview.adblockplus.org/11003016/diff/1/.sitescripts.example#newcode126 .sitescripts.example:126: easyexample_target=easylist:easyexample I would rather keep it more general - ...
June 24, 2013, 12:35 p.m. (2013-06-24 12:35:10 UTC) #3
Thomas Greiner
Applied all suggested changes. Please note that the Python file in this review is still ...
June 24, 2013, 2:24 p.m. (2013-06-24 14:24:45 UTC) #4
Felix Dahlke
LGTM, with a nit. http://codereview.adblockplus.org/11003016/diff/7002/sitescripts/extensions/bin/updateExternalFilterlists.py File sitescripts/extensions/bin/updateExternalFilterlists.py (right): http://codereview.adblockplus.org/11003016/diff/7002/sitescripts/extensions/bin/updateExternalFilterlists.py#newcode18 sitescripts/extensions/bin/updateExternalFilterlists.py:18: import os, subprocess, codecs, urllib, ...
June 25, 2013, 10:10 a.m. (2013-06-25 10:10:02 UTC) #5
Wladimir Palant
June 25, 2013, 11:21 a.m. (2013-06-25 11:21:03 UTC) #6
LGTM with the issues below fixed (and the one noted by Felix).

http://codereview.adblockplus.org/11003016/diff/7002/sitescripts/extensions/b...
File sitescripts/extensions/bin/updateExternalFilterlists.py (right):

http://codereview.adblockplus.org/11003016/diff/7002/sitescripts/extensions/b...
sitescripts/extensions/bin/updateExternalFilterlists.py:25: for name, setting in
settings.iteritems():
Nit: for setting in settings.itervalues() - the key isn't being used.

http://codereview.adblockplus.org/11003016/diff/7002/sitescripts/extensions/b...
sitescripts/extensions/bin/updateExternalFilterlists.py:42: data =
urllib.urlopen(setting['source']).read()
You need to add .decode('utf-8') at the end - as is this is being interpreted as
ASCII data and will cause issues if the file has non-ASCII content.

Powered by Google App Engine
This is Rietveld