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

Issue 4635066: result count function updated

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by sinha
Modified:
13 years, 10 months ago
Reviewers:
Reimar Bauer
Visibility:
Public.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -7 lines) Patch
M MoinMoin/apps/frontend/views.py View 2 chunks +2 lines, -5 lines 1 comment Download
M MoinMoin/user.py View 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 1
Reimar Bauer
13 years, 10 months ago (2011-06-24 08:21:10 UTC) #1
don't introduce two names for the same thing

http://codereview.appspot.com/4635066/diff/1/MoinMoin/apps/frontend/views.py
File MoinMoin/apps/frontend/views.py (right):

http://codereview.appspot.com/4635066/diff/1/MoinMoin/apps/frontend/views.py#...
MoinMoin/apps/frontend/views.py:554: count =
flaskg.user.getCount(default_count=count)
you introduce two words for the same thing

http://codereview.appspot.com/4635066/diff/1/MoinMoin/user.py
File MoinMoin/user.py (right):

http://codereview.appspot.com/4635066/diff/1/MoinMoin/user.py#newcode795
MoinMoin/user.py:795: def getCount(self, default_count=0):
if it is the results_per_page count then you should
use that name,

The current one has a prefix default_. You can mention yourself that everything
somehow which initialize something
is a default value for somenthing. So that prefix is unnecessary.
Sign in to reply to this message.

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