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

Issue 4626068: Pagination feature to item history results

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

Patch Set 1 #

Total comments: 10

Patch Set 2 : code cleaned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -2 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 1 chunk +35 lines, -2 lines 0 comments Download
M MoinMoin/templates/history.html View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Reimar Bauer
please try to avoid dups in code some suggestions for cleaning up http://codereview.appspot.com/4626068/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py ...
13 years, 6 months ago (2011-06-23 08:35:00 UTC) #1
sinha
http://codereview.appspot.com/4626068/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/4626068/diff/1/MoinMoin/apps/frontend/views.py#newcode543 MoinMoin/apps/frontend/views.py:543: On 2011/06/23 08:35:01, Reimar Bauer wrote: > In general: ...
13 years, 6 months ago (2011-06-24 06:24:53 UTC) #2
Reimar Bauer
13 years, 6 months ago (2011-06-24 08:33:30 UTC) #3
answered

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

http://codereview.appspot.com/4626068/diff/1/MoinMoin/apps/frontend/views.py#...
MoinMoin/apps/frontend/views.py:544: offset = request.values.get('offset', 0)
On 2011/06/24 06:24:53, sinha wrote:
> On 2011/06/23 08:35:01, Reimar Bauer wrote:
> > ToDo: may be we should extend get to set the default also for values which
is
> > not in the valid range.
> 
> How ? i mean where is its implementation ?

Well it is in werkzeug datstructure, you can add a feature request to the issue
tracker.

http://codereview.appspot.com/4626068/diff/1/MoinMoin/apps/frontend/views.py#...
MoinMoin/apps/frontend/views.py:551: count = flaskg.user.getCount()
On 2011/06/24 06:24:53, sinha wrote:
> On 2011/06/23 08:35:01, Reimar Bauer wrote:
> > this getCount should get an additional argument to set the default, saves
> these
> > condition of the next line.
> 
> this function has been altered, you can confirm it here
> http://codereview.appspot.com/4635066

I reviewed it
Sign in to reply to this message.

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