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

Issue 11584044: namespace - item_root mapping

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by ashu1461
Modified:
10 years, 9 months ago
Reviewers:
thomas.j.waldmann
Visibility:
Public.

Description

namespace - item_root mapping

Patch Set 1 #

Total comments: 12

Patch Set 2 : Added default root. #

Total comments: 7

Patch Set 3 : Added a new func to composite name class. #

Total comments: 4

Patch Set 4 : ~ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -17 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M MoinMoin/apps/misc/views.py View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M MoinMoin/config/default.py View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M MoinMoin/templates/layout.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M MoinMoin/themes/__init__.py View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M MoinMoin/themes/foobar/templates/layout.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M MoinMoin/util/interwiki.py View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M wikiconfig.py View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 7
Thomas.J.Waldmann
https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py File MoinMoin/config/default.py (right): https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py#newcode462 MoinMoin/config/default.py:462: ('item_root', None, "Name of the root item (aka 'front ...
10 years, 10 months ago (2013-07-25 11:16:16 UTC) #1
ashu1461
https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py File MoinMoin/config/default.py (right): https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py#newcode462 MoinMoin/config/default.py:462: ('item_root', None, "Name of the root item (aka 'front ...
10 years, 10 months ago (2013-07-25 16:31:33 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py File MoinMoin/config/default.py (right): https://codereview.appspot.com/11584044/diff/1/MoinMoin/config/default.py#newcode462 MoinMoin/config/default.py:462: ('item_root', None, "Name of the root item (aka 'front ...
10 years, 10 months ago (2013-07-25 16:39:40 UTC) #3
Thomas.J.Waldmann
https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py#newcode80 MoinMoin/apps/frontend/views.py:80: return redirect(url_for_item(item_name)) guess we need more than one such ...
10 years, 9 months ago (2013-07-30 21:57:52 UTC) #4
ashu1461
https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py#newcode80 MoinMoin/apps/frontend/views.py:80: return redirect(url_for_item(item_name)) On 2013/07/30 21:57:52, Thomas.J.Waldmann wrote: > guess ...
10 years, 9 months ago (2013-08-03 17:48:28 UTC) #5
Thomas.J.Waldmann
https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/11584044/diff/13002/MoinMoin/apps/frontend/views.py#newcode80 MoinMoin/apps/frontend/views.py:80: return redirect(url_for_item(item_name)) as both cases are following the same ...
10 years, 9 months ago (2013-08-04 12:20:08 UTC) #6
Thomas.J.Waldmann
10 years, 9 months ago (2013-08-05 17:30:21 UTC) #7
https://codereview.appspot.com/11584044/diff/40001/MoinMoin/apps/frontend/vie...
File MoinMoin/apps/frontend/views.py (right):

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/apps/frontend/vie...
MoinMoin/apps/frontend/views.py:79: item_name =
app.cfg.root_mapping[NAMESPACE_DEFAULT]
this constant is u'' right? see my other comments.

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/apps/misc/views.py
File MoinMoin/apps/misc/views.py (right):

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/apps/misc/views.p...
MoinMoin/apps/misc/views.py:44: revs = list(flaskg.storage.search(q=query))
why do you need list() here?

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/apps/misc/views.p...
MoinMoin/apps/misc/views.py:45: for rev in revs:
you could just merge like:

for rev in flaskg.storage.search(...):

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/themes/__init__.py
File MoinMoin/themes/__init__.py (right):

https://codereview.appspot.com/11584044/diff/40001/MoinMoin/themes/__init__.p...
MoinMoin/themes/__init__.py:231: args['item_name'] = app.cfg.root_mapping[u'']
use the constant?
Sign in to reply to this message.

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