return exc.HTTPFound(
location=request.urlgen("mediagoblin.auth.register_success"))
- # render
- return render_to_response(
- request, 'mediagoblin/auth/register.html',
- {'register_form': register_form})
+ return render_to_response(request,
+ 'mediagoblin/auth/register.html',
+ {'register_form': register_form})
def register_success(request):
- return render_to_response(
- request, 'mediagoblin/auth/register_success.html', {})
+ return render_to_response(request,
+ 'mediagoblin/auth/register_success.html', {})
def login(request):
auth_lib.fake_login_attempt()
login_failed = True
- # render
- return render_to_response(
- request, 'mediagoblin/auth/login.html',
- {'login_form': login_form,
- 'next': request.GET.get('next') or request.POST.get('next'),
- 'login_failed': login_failed})
+ return render_to_response(request,
+ 'mediagoblin/auth/login.html',
+ {'login_form': login_form,
+ 'next': request.GET.get('next') or request.POST.get('next'),
+ 'login_failed': login_failed})
def logout(request):
else:
verification_successful = False
- return render_to_response(
- request, 'mediagoblin/auth/verify_email.html',
- {'user': user,
- 'verification_successful': verification_successful})
+ return render_to_response(request,
+ 'mediagoblin/auth/verify_email.html',
+ {'user': user,
+ 'verification_successful': verification_successful})
def verify_email_notice(request):
"""
When the user tries to do some action that requires their account
to be verified beforehand, this view is called upon!
"""
- return render_to_response(
- request, 'mediagoblin/auth/verification_needed.html', {})
+ return render_to_response(request,
+ 'mediagoblin/auth/verification_needed.html', {})
def resend_activation(request):
def resend_activation_success(request):
- return render_to_response(
- request, 'mediagoblin/auth/resent_verification_email.html', {})
+ return render_to_response(request,
+ 'mediagoblin/auth/resent_verification_email.html', {})
return exc.HTTPFound(
location=request.urlgen("mediagoblin.submit.success"))
- # render
- return render_to_response(
- request, 'mediagoblin/submit/start.html',
- {'submit_form': submit_form})
+ return render_to_response(request,
+ 'mediagoblin/submit/start.html',
+ {'submit_form': submit_form})
def submit_success(request):
- # render
- return render_to_response(
- request, 'mediagoblin/submit/success.html', {})
+ return render_to_response(request,
+ 'mediagoblin/submit/success.html', {})
if media_entries == None:
return exc.HTTPNotFound()
- return render_to_response(
- request, 'mediagoblin/user_pages/user.html',
- {'user': user,
- 'media_entries': media_entries,
- 'pagination': pagination})
+ return render_to_response(request,
+ 'mediagoblin/user_pages/user.html',
+ {'user': user,
+ 'media_entries': media_entries,
+ 'pagination': pagination})
@get_user_media_entry
def media_home(request, media):
"""'Homepage' of a MediaEntry()"""
- return render_to_response(
- request, 'mediagoblin/user_pages/media.html',
- {'media': media})
+ return render_to_response(request,
+ 'mediagoblin/user_pages/media.html',
+ {'media': media})
ATOM_DEFAULT_NR_OF_UPDATED_ITEMS = 5