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

Issue 6209085: highlight suppression in FullSearch/PageList

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by eSyr
Modified:
11 years, 11 months ago
Reviewers:
thomas.j.waldmann, Reimar Bauer
Visibility:
Public.

Description

highlight suppression in FullSearch/PageList

Patch Set 1 #

Total comments: 6

Patch Set 2 : updates as a result of code review. #

Total comments: 12

Patch Set 3 : after second review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -38 lines) Patch
M MoinMoin/config/multiconfig.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
M MoinMoin/macro/FullSearch.py View 1 2 2 chunks +62 lines, -9 lines 0 comments Download
M MoinMoin/macro/PageList.py View 1 2 2 chunks +2 lines, -18 lines 0 comments Download
M MoinMoin/search/results.py View 1 2 9 chunks +26 lines, -11 lines 0 comments Download

Messages

Total messages: 4
ThomasJWaldmann
http://codereview.appspot.com/6209085/diff/1/MoinMoin/config/multiconfig.py File MoinMoin/config/multiconfig.py (right): http://codereview.appspot.com/6209085/diff/1/MoinMoin/config/multiconfig.py#newcode1335 MoinMoin/config/multiconfig.py:1335: "in search results generated by macro."), highlight_titles? http://codereview.appspot.com/6209085/diff/1/MoinMoin/config/multiconfig.py#newcode1337 MoinMoin/config/multiconfig.py:1337: ...
11 years, 11 months ago (2012-05-20 17:12:49 UTC) #1
eSyr
http://codereview.appspot.com/6209085/diff/1/MoinMoin/search/results.py File MoinMoin/search/results.py (right): http://codereview.appspot.com/6209085/diff/1/MoinMoin/search/results.py#newcode617 MoinMoin/search/results.py:617: @keyword do_highlight: highlight search query matches On 2012/05/20 17:12:49, ...
11 years, 11 months ago (2012-05-20 18:56:02 UTC) #2
Reimar Bauer
some comments http://codereview.appspot.com/6209085/diff/7001/MoinMoin/macro/FullSearch.py File MoinMoin/macro/FullSearch.py (left): http://codereview.appspot.com/6209085/diff/7001/MoinMoin/macro/FullSearch.py#oldcode94 MoinMoin/macro/FullSearch.py:94: needle = '"%s"' % macro.formatter.page.page_name page_name can ...
11 years, 11 months ago (2012-05-20 19:14:44 UTC) #3
ThomasJWaldmann
11 years, 11 months ago (2012-05-20 19:52:01 UTC) #4
http://codereview.appspot.com/6209085/diff/7001/MoinMoin/macro/FullSearch.py
File MoinMoin/macro/FullSearch.py (right):

http://codereview.appspot.com/6209085/diff/7001/MoinMoin/macro/FullSearch.py#...
MoinMoin/macro/FullSearch.py:110: val = int(arg[1].lower() in [u'1', u'true',
u'y'])
btw, str(True) == 'True'

http://codereview.appspot.com/6209085/diff/7001/MoinMoin/search/results.py
File MoinMoin/search/results.py (right):

http://codereview.appspot.com/6209085/diff/7001/MoinMoin/search/results.py#ne...
MoinMoin/search/results.py:315: @param highlight_titles: performa highlighting
in page list
perform highlighting ...

http://codereview.appspot.com/6209085/diff/7001/MoinMoin/search/results.py#ne...
MoinMoin/search/results.py:359: do_highlight=highlight_pages)
btw, we don't follow PEP8's 79(?) char long lines rule.

sometimes breaking a line just for a few chars makes it worse than just
finishing on same line.
Sign in to reply to this message.

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