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, 11 months ago
(2015-01-22 20:17:22 UTC)
#1
9 years, 10 months ago
(2015-02-15 17:03:22 UTC)
#5
On 2015/02/13 16:48:43, aabs08 wrote:
>
https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/v...
> File MoinMoin/apps/frontend/views.py (right):
>
>
https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/v...
> MoinMoin/apps/frontend/views.py:1589: next_url = request.args.get('next',
> default = url_for('.show_root') )
> On 2015/02/08 16:10:57, Thomas.J.Waldmann wrote:
> > does it need that "default ="?
> >
> > if so, follow pep8 and remove the blanks around "=".
> > if not, remove it completely.
>
> yes it does need default else for "http://localhost:8080/+login" it is
> redirected to http://localhost:8080/None as next is not present
I don't think you understood the point of my comment.
I was only referring to the "default = " part. I didn't say you shall remove
url_for('.show_root').
A normal dict has .get(key, default) signature, so you can just say foo.get(key,
"something") instead of foo.get(key, default="something").
Check if that is also the case for request.args (and practically test if it
works).
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, 10 months ago
(2015-02-17 17:35:25 UTC)
#7
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/v...
> > File MoinMoin/apps/frontend/views.py (right):
> >
> >
>
https://codereview.appspot.com/194330043/diff/100001/MoinMoin/apps/frontend/v...
> > MoinMoin/apps/frontend/views.py:1589: next_url = request.args.get('next',
> > default = url_for('.show_root') )
> > On 2015/02/08 16:10:57, Thomas.J.Waldmann wrote:
> > > does it need that "default ="?
> > >
> > > if so, follow pep8 and remove the blanks around "=".
> > > if not, remove it completely.
> >
> > yes it does need default else for "http://localhost:8080/+login" it is
> > redirected to http://localhost:8080/None as next is not present
>
> I don't think you understood the point of my comment.
> I was only referring to the "default = " part. I didn't say you shall remove
> url_for('.show_root').
>
> A normal dict has .get(key, default) signature, so you can just say
foo.get(key,
> "something") instead of foo.get(key, default="something").
> Check if that is also the case for request.args (and practically test if it
> works).
still TODO.
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, 10 months ago
(2015-02-21 21:02:47 UTC)
#9
9 years, 10 months ago
(2015-02-22 05:55:11 UTC)
#10
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/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?
9 years, 10 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.
Issue 194330043: login and logout redirection done
(Closed)
Created 9 years, 11 months ago by aabs08
Modified 9 years, 9 months ago
Reviewers: thomas.j.waldmann_gmail.com
Base URL:
Comments: 19