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

Issue 7888: Adding variable column width setting

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 2 months ago by georgedorn
Modified:
16 years, 5 months ago
Reviewers:
Andi Albrecht, GvR
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M codereview/engine.py View 5 chunks +6 lines, -6 lines 1 comment Download
M codereview/models.py View 1 chunk +1 line, -0 lines 0 comments Download
M codereview/views.py View 11 chunks +31 lines, -7 lines 1 comment Download
D templates/context_select.html View 1 chunk +0 lines, -12 lines 0 comments Download
M templates/diff.html View 1 chunk +1 line, -1 line 0 comments Download
M templates/diff_navigation.html View 2 chunks +10 lines, -2 lines 1 comment Download
A + templates/view_details_select.html View 1 chunk +3 lines, -1 line 1 comment Download

Messages

Total messages: 3
georgedorn
There. This seems to work and was easier than expected.
17 years, 2 months ago (2008-10-29 18:05:23 UTC) #1
georgedorn
http://codereview.appspot.com/7888/diff/1/6 File templates/diff_navigation.html (right): http://codereview.appspot.com/7888/diff/1/6#newcode10 Line 10: {{patch.prev.key.id}}{%if context and column_width%}?context={{context}}&column_width={{column_width}} There should be a ...
17 years, 2 months ago (2008-10-29 20:01:54 UTC) #2
Andi Albrecht
17 years, 2 months ago (2008-11-04 14:11:29 UTC) #3
I had some troubles applying the patch, because it tries to patch a non existent
templates/view_details_select.html. 

But in general it works great, we just have some (irrelevant) layout issues with
column headers and comments when column width is < 80. I think that isn't a
problem at all... ;-)

Some lines in the patch are > 79 chars, I didn't commented them.

http://codereview.appspot.com/7888/diff/1/4
File codereview/engine.py (right):

http://codereview.appspot.com/7888/diff/1/4#newcode186
Line 186: colwidth=DEFAULT_COLUMN_WIDTH, debug=False, context=DEFAULT_CONTEXT):
Line too long and missing blank line above "def RenderDiffTableRows..."

http://codereview.appspot.com/7888/diff/1/2
File codereview/views.py (right):

http://codereview.appspot.com/7888/diff/1/2#newcode289
Line 289: column_width = forms.IntegerField(label='Column Width', initial=80)
Maybe you should add max_value and min_value here (see
http://docs.djangoproject.com/en/dev/ref/forms/fields/#integerfield). Without it
it's no problem to set a negative value or some verrry high value (raises a
BadValue error) here (of course, this is catched in
_get_column_width_for_user()).

http://codereview.appspot.com/7888/diff/1/5
File templates/view_details_select.html (right):

http://codereview.appspot.com/7888/diff/1/5#newcode11
Line 11: <label for="id_column_width">Column Width:</label>
hm... this makes the box on the top very large... The more we add to this box
the more I feel unlucky with it. I think we should find a better place for those
options and links some day, but for now it's ok to leave them where they are.
Sign in to reply to this message.

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