app/soc/views/simple.py
changeset 293 1edd01373e71
parent 272 00cea07656c0
child 295 651d9eabdef7
equal deleted inserted replaced
292:1cece5192e26 293:1edd01373e71
   110 
   110 
   111 DEF_LOGIN_TMPL = 'soc/login.html'
   111 DEF_LOGIN_TMPL = 'soc/login.html'
   112 DEF_LOGIN_MSG_FMT = ugettext_lazy(
   112 DEF_LOGIN_MSG_FMT = ugettext_lazy(
   113   'Please <a href="%(sign_in)s">sign in</a> to continue.')
   113   'Please <a href="%(sign_in)s">sign in</a> to continue.')
   114 
   114 
   115 def requestLogin(request, template, context, login_message_fmt=None):
   115 def requestLogin(request, template, context=None, login_message_fmt=None):
   116   """Displays a login request page with custom message and login link.
   116   """Displays a login request page with custom message and login link.
   117   
   117   
   118   Args:
   118   Args:
   119     request: the standard Django HTTP request object
   119     request: the standard Django HTTP request object
   120     template: the "sibling" template (or a search list of such templates)
   120     template: the "sibling" template (or a search list of such templates)