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

Issue 5504083: MoinMoin: Fix #104 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by julian.brost
Modified:
12 years, 3 months ago
Reviewers:
thomas.j.waldmann, Reimar Bauer
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 : updated #

Total comments: 6

Patch Set 3 : updated #

Total comments: 1

Patch Set 4 : updated #

Patch Set 5 : updated #

Total comments: 12

Patch Set 6 : updated #

Patch Set 7 : s/^I/ /g #

Total comments: 4

Patch Set 8 : updated #

Patch Set 9 : Reverted unwanted change to CSS file #

Patch Set 10 : final version? #

Patch Set 11 : updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -159 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 4 5 6 7 8 9 3 chunks +102 lines, -66 lines 0 comments Download
M MoinMoin/static/js/common.js View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
M MoinMoin/templates/forms.html View 1 1 chunk +8 lines, -0 lines 0 comments Download
M MoinMoin/templates/usersettings.html View 1 1 chunk +34 lines, -93 lines 0 comments Download
A MoinMoin/templates/usersettings_ajax.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
A MoinMoin/templates/usersettings_forms.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +83 lines, -0 lines 0 comments Download
M MoinMoin/themes/modernized/static/css/common.css View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7
ThomasJWaldmann
http://codereview.appspot.com/5504083/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/5504083/diff/1/MoinMoin/apps/frontend/views.py#newcode1397 MoinMoin/apps/frontend/views.py:1397: if inspect.isclass(f): can you do it without inspect? http://codereview.appspot.com/5504083/diff/2001/MoinMoin/apps/frontend/views.py ...
12 years, 4 months ago (2011-12-24 00:23:31 UTC) #1
julian.brost
http://codereview.appspot.com/5504083/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/5504083/diff/1/MoinMoin/apps/frontend/views.py#newcode1397 MoinMoin/apps/frontend/views.py:1397: if inspect.isclass(f): On 2011/12/24 00:23:31, Thomas.J.Waldmann wrote: > can ...
12 years, 4 months ago (2011-12-24 13:47:14 UTC) #2
ThomasJWaldmann
http://codereview.appspot.com/5504083/diff/1009/MoinMoin/static/js/common.js File MoinMoin/static/js/common.js (right): http://codereview.appspot.com/5504083/diff/1009/MoinMoin/static/js/common.js#newcode1045 MoinMoin/static/js/common.js:1045: var newform = $(data.form); are you using tabs? don't.
12 years, 4 months ago (2011-12-24 15:27:54 UTC) #3
Reimar Bauer
what are the differences in the html, css files? should there some? check if === ...
12 years, 4 months ago (2011-12-26 20:35:57 UTC) #4
julian.brost
http://codereview.appspot.com/5504083/diff/20/MoinMoin/static/js/common.js File MoinMoin/static/js/common.js (right): http://codereview.appspot.com/5504083/diff/20/MoinMoin/static/js/common.js#newcode994 MoinMoin/static/js/common.js:994: // move all tab titles to an <ul> at ...
12 years, 4 months ago (2011-12-26 20:45:18 UTC) #5
ThomasJWaldmann
http://codereview.appspot.com/5504083/diff/12/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/5504083/diff/12/MoinMoin/apps/frontend/views.py#newcode1401 MoinMoin/apps/frontend/views.py:1401: if response['redirect'] is not None or not request.is_xhr: can ...
12 years, 4 months ago (2011-12-26 23:07:11 UTC) #6
julian.brost
12 years, 4 months ago (2011-12-26 23:21:52 UTC) #7
http://codereview.appspot.com/5504083/diff/12/MoinMoin/apps/frontend/views.py
File MoinMoin/apps/frontend/views.py (right):

http://codereview.appspot.com/5504083/diff/12/MoinMoin/apps/frontend/views.py...
MoinMoin/apps/frontend/views.py:1401: if response['redirect'] is not None or not
request.is_xhr:
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> can you explain the condition?

We can only use flash() if the whole page reloads. This is only the case if it's
not an AJAX/XHR request (not request.is_xhr) or we redirect anyway
(response['redirect'] is not None).

Otherwise we just send the flash messages via the returned JSON and display them
from the javascript code.

http://codereview.appspot.com/5504083/diff/12/MoinMoin/apps/frontend/views.py...
MoinMoin/apps/frontend/views.py:1413: # TODO
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> always write TODO <what> (or just DO IT :)

That was just an marker for me so that I don't forget. This is fixed in the
latest patch set.

http://codereview.appspot.com/5504083/diff/12/MoinMoin/static/js/common.js
File MoinMoin/static/js/common.js (right):

http://codereview.appspot.com/5504083/diff/12/MoinMoin/static/js/common.js#ne...
MoinMoin/static/js/common.js:987: function initMoinTabs($) {
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> misses "docstring", explain what it does / how it does it.
> 
> don't write "init tabs" :)

What about this? That's how it is in the latest version.

// find all .moin-tabs elements and initialize them

http://codereview.appspot.com/5504083/diff/12/MoinMoin/static/js/common.js#ne...
MoinMoin/static/js/common.js:1007: function updateFromLocationHash() {
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> hash?

The part of the URL after the hash symbol (including the hash symbol). So for
"http://localhost:8080/+usersettings#personal" location.hash would be
"#personal".

http://codereview.appspot.com/5504083/diff/12/MoinMoin/static/js/common.js#ne...
MoinMoin/static/js/common.js:1021: setInterval(updateFromLocationHash, 40); //
there is no event for that
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> for what?

This is not absolutely necessary but otherwise you can't change the hash in the
URL manually.

http://codereview.appspot.com/5504083/diff/12/MoinMoin/static/js/common.js#ne...
MoinMoin/static/js/common.js:1027: function initMoinUsersettings($) {
On 2011/12/26 23:07:12, Thomas.J.Waldmann wrote:
> above you indented by 4, here by 8.

Fixed in the latest version.
Sign in to reply to this message.

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