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

Issue 4830045: Unifying global_index and item index page

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

Patch Set 1 #

Total comments: 21

Patch Set 2 : code cleaned and some faults are fixed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -39 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 3 chunks +19 lines, -28 lines 0 comments Download
M MoinMoin/config/default.py View 1 chunk +1 line, -1 line 0 comments Download
M MoinMoin/templates/index.html View 1 2 chunks +45 lines, -10 lines 2 comments Download

Messages

Total messages: 5
sinha
Most of things are working, got 1-2 small issue. http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py#newcode472 MoinMoin/apps/frontend/views.py:472: ...
13 years, 3 months ago (2011-07-29 21:22:48 UTC) #1
Reimar Bauer
answers and new comments. remove the missed index2 in a different changeset http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py ...
13 years, 3 months ago (2011-07-30 08:15:52 UTC) #2
ThomasWaldmann
http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py#newcode481 MoinMoin/apps/frontend/views.py:481: item = Item.create(item_name) # when item_name='', it gives toplevel ...
13 years, 3 months ago (2011-07-30 11:11:19 UTC) #3
sinha
Reply to the questions and a new patch set added for review. http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py ...
13 years, 3 months ago (2011-07-30 22:34:10 UTC) #4
Reimar Bauer
13 years, 3 months ago (2011-07-31 07:54:10 UTC) #5
some small changes needed

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

http://codereview.appspot.com/4830045/diff/1/MoinMoin/apps/frontend/views.py#...
MoinMoin/apps/frontend/views.py:507: split_char = u'/'
On 2011/07/30 22:34:10, sinha wrote:
> On 2011/07/30 08:15:52, Reimar Bauer wrote:
> > why have you created this var?
> 
> you mean why assigning a variable to that expression

yes and I guess it is for cosmetics. The split char won't change.

 or what is purpose of that
> variable.
> 
> If it is about purpose, then for displaying the path at top i am sending the
> names of item's parents in a list form.

http://codereview.appspot.com/4830045/diff/1/MoinMoin/templates/index.html
File MoinMoin/templates/index.html (right):

http://codereview.appspot.com/4830045/diff/1/MoinMoin/templates/index.html#ne...
MoinMoin/templates/index.html:65: {% else %}
On 2011/07/30 22:34:10, sinha wrote:
> On 2011/07/30 08:15:52, Reimar Bauer wrote:
> > On 2011/07/29 21:22:48, sinha wrote:
> > > Here i have to use one more if condition just to see if a itemname exist
and
> i
> > > will generate the url according to that.
> > > 
> > > As when item_name='', the url thus generated as "+index/" but there is
only
> > > "/+index" at the frontend route, what should i do ? should i use this if
> > > condition and generate url based on that or i just simply add "/+index/"
at
> > the
> > > frontend.route such that it will serve the global_index on seeing that.
> > 
> > I would prefer to have it as /+index/ because the latter is the root. The
> first
> > one depends on the wsgi definition. It could be also e.g. /wiki/+index/
> > 
> > Please verify the unit tests too
> 
> i have changed it to "/+index/" at frontend route, and now if someone enters
url
> as "/+index" only, it gets redirected to "/+index/", so is this normal or
> something needs to be done here.

I guess this happens by the framework. You should discuss this on #pocoo

http://codereview.appspot.com/4830045/diff/5002/MoinMoin/templates/index.html
File MoinMoin/templates/index.html (right):

http://codereview.appspot.com/4830045/diff/5002/MoinMoin/templates/index.html...
MoinMoin/templates/index.html:7: <div>Filter by content type </div>
i18n

http://codereview.appspot.com/4830045/diff/5002/MoinMoin/templates/index.html...
MoinMoin/templates/index.html:45: <div id="moin-letters">
id="moin-initials" ?
Sign in to reply to this message.

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