comparison MoinMoin/themes/__init__.py @ 2937:456c68761e96

merge
author RogerHaase <haaserd@gmail.com>
date Tue, 28 Apr 2015 12:17:55 -0700
parents f09bf7d9578e 08007ac96dda
children afe523052a7f
comparison
equal deleted inserted replaced
2932:4ab27780d078 2937:456c68761e96
437 437
438 # TODO: reimplement on-wiki-page sidebar definition with MoinMoin.converter 438 # TODO: reimplement on-wiki-page sidebar definition with MoinMoin.converter
439 439
440 # Properties ############################################################## 440 # Properties ##############################################################
441 441
442 def login_url(self): 442 def login_url(self, next_url=None):
443 """ 443 """
444 Return URL usable for user login 444 Return URL usable for user login
445 445
446 :rtype: unicode (or None, if no login url is supported) 446 :rtype: unicode (or None, if no login url is supported)
447 :returns: url for user login 447 :returns: url for user login
448 """ 448 """
449 url = None 449 url = None
450 if self.cfg.auth_login_inputs == ['special_no_input']: 450 if self.cfg.auth_login_inputs == ['special_no_input']:
451 url = url_for('frontend.login', login=1) 451 url = url_for('frontend.login', login=1, next=next_url)
452 if self.cfg.auth_have_login: 452 if self.cfg.auth_have_login:
453 url = url or url_for('frontend.login') 453 url = url or url_for('frontend.login', next=next_url)
454 return url 454 return url
455 455
456 def get_fqnames(self, fqname): 456 def get_fqnames(self, fqname):
457 """ 457 """
458 Return the list of other fqnames associated with the item. 458 Return the list of other fqnames associated with the item.