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

Issue 194330043: login and logout redirection done (Closed)

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

Description

login and logout redirection done

Patch Set 1 #

Total comments: 6

Patch Set 2 : login and logout redirection now happens through get variable next #

Patch Set 3 : login and logout redirection now happens through get variable next #

Patch Set 4 : redirection through next and some pep8 issues #

Total comments: 3

Patch Set 5 : session variable next removed #

Patch Set 6 : session variable next removed #

Total comments: 3

Patch Set 7 : default removed in one case, pep8 issues and Issue #482 #

Total comments: 1

Patch Set 8 : login_url removed in if #

Patch Set 9 : login_url completely removed #

Patch Set 10 : login_url completely removed #

Total comments: 2

Patch Set 11 : login_url Method changed #

Patch Set 12 : login_url Method changed and pep8 issue #

Patch Set 13 : login_url Method changed and pep8 issues #

Total comments: 4

Patch Set 14 : login method updated and pep8 issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 4 5 6 3 chunks +8 lines, -2 lines 0 comments Download
M MoinMoin/themes/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M MoinMoin/themes/basic/templates/layout.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -3 lines 0 comments Download
M MoinMoin/themes/basic/templates/login.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11
Thomas.J.Waldmann
some feedback. in general: which issue (issue tracker url?) are you fixing? https://codereview.appspot.com/194330043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py ...
9 years, 4 months ago (2015-01-22 20:17:22 UTC) #1
Thomas.J.Waldmann
https://codereview.appspot.com/194330043/diff/60001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/194330043/diff/60001/MoinMoin/apps/frontend/views.py#newcode1584 MoinMoin/apps/frontend/views.py:1584: session['next'] = request.args.get('next') or '/' .get() for dictionaries has ...
9 years, 3 months ago (2015-01-23 16:47:56 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py#newcode1589 MoinMoin/apps/frontend/views.py:1589: next_url = request.args.get('next', default = url_for('.show_root') ) does it ...
9 years, 3 months ago (2015-02-08 16:10:57 UTC) #3
aabs08
https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py#newcode1589 MoinMoin/apps/frontend/views.py:1589: next_url = request.args.get('next', default = url_for('.show_root') ) On 2015/02/08 ...
9 years, 3 months ago (2015-02-13 16:48:43 UTC) #4
Thomas.J.Waldmann
On 2015/02/13 16:48:43, aabs08 wrote: > https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py > File MoinMoin/apps/frontend/views.py (right): > > https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py#newcode1589 > ...
9 years, 3 months ago (2015-02-15 17:03:22 UTC) #5
Thomas.J.Waldmann
https://codereview.appspot.com/194330043/diff/120001/MoinMoin/themes/basic/templates/layout.html File MoinMoin/themes/basic/templates/layout.html (right): https://codereview.appspot.com/194330043/diff/120001/MoinMoin/themes/basic/templates/layout.html#newcode173 MoinMoin/themes/basic/templates/layout.html:173: {% if login_url %} hmm, login_url is checked here, ...
9 years, 3 months ago (2015-02-15 17:03:28 UTC) #6
Thomas.J.Waldmann
On 2015/02/15 17:03:22, Thomas.J.Waldmann wrote: > On 2015/02/13 16:48:43, aabs08 wrote: > > > https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/views.py ...
9 years, 3 months ago (2015-02-17 17:35:25 UTC) #7
Thomas.J.Waldmann
https://codereview.appspot.com/194330043/diff/180001/MoinMoin/themes/basic/templates/layout.html File MoinMoin/themes/basic/templates/layout.html (left): https://codereview.appspot.com/194330043/diff/180001/MoinMoin/themes/basic/templates/layout.html#oldcode17 MoinMoin/themes/basic/templates/layout.html:17: {% set login_url = theme_supp.login_url() %} is theme_supp.login_url still ...
9 years, 3 months ago (2015-02-17 17:35:33 UTC) #8
Thomas.J.Waldmann
https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/__init__.py File MoinMoin/themes/__init__.py (right): https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/__init__.py#newcode442 MoinMoin/themes/__init__.py:442: def login_url(self, redirection=True): how about just having a next=None ...
9 years, 3 months ago (2015-02-21 21:02:47 UTC) #9
aabs08
https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/basic/templates/layout.html File MoinMoin/themes/basic/templates/layout.html (right): https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/basic/templates/layout.html#newcode168 MoinMoin/themes/basic/templates/layout.html:168: {{ hyperlink(url_for('frontend.logout', logout_submit=1, next=current_path), None, True, On 2015/02/21 21:02:47, ...
9 years, 3 months ago (2015-02-22 05:55:11 UTC) #10
Thomas.J.Waldmann
9 years, 2 months ago (2015-02-22 17:02:04 UTC) #11
ok, looks good.

https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/basic/te...
File MoinMoin/themes/basic/templates/layout.html (right):

https://codereview.appspot.com/194330043/diff/240001/MoinMoin/themes/basic/te...
MoinMoin/themes/basic/templates/layout.html:168: {{
hyperlink(url_for('frontend.logout', logout_submit=1,  next=current_path), None,
True,
On 2015/02/22 05:55:10, aabs08 wrote:
> On 2015/02/21 21:02:47, Thomas.J.Waldmann wrote:
> > only one space. did you run the pep8 checker?
> 
> I did run ./m tests but now I see that they only check in *.py files and
running
> pep8 layput.html gives error in all the lines. Is there a checker for html
files
> also that I am unaware of?

hmm, i think rogerhaase at some time did some template checking / cleanup, but i
don't remeber precisely - ask him.
Sign in to reply to this message.

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