remove useless template and unused import.
authorcavaliet
Tue, 04 Dec 2012 13:55:35 +0100
changeset 1013 7b5c49cab8f1
parent 1011 0f5c867b917d
child 1014 4e3edc45a890
remove useless template and unused import.
src/ldt/ldt/ldt_utils/views/front.py
src/ldt/ldt/ldt_utils/views/group.py
src/ldt/ldt/ldt_utils/views/project.py
src/ldt/ldt/security/utils.py
web/ldtplatform/templates/registration/login.html
--- a/src/ldt/ldt/ldt_utils/views/front.py	Tue Dec 04 13:41:14 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/views/front.py	Tue Dec 04 13:55:35 2012 +0100
@@ -1,6 +1,5 @@
 from django.conf import settings
 from django.contrib.auth.models import Group, User
-from django.http import HttpResponseRedirect
 from django.core.paginator import Paginator, InvalidPage, EmptyPage
 from django.core.urlresolvers import reverse
 from django.shortcuts import render_to_response
@@ -10,9 +9,7 @@
 from ldt.ldt_utils.forms import SearchForm
 from ldt.ldt_utils.views.content import get_content_tags
 from ldt.ldt_utils.views.workspace import get_search_results
-from tagging.models import Tag, TaggedItem
-from django.contrib.sites.models import Site
-from django.template import Context
+from tagging.models import TaggedItem
 from ldt.utils.url import absstatic
 import base64
 
--- a/src/ldt/ldt/ldt_utils/views/group.py	Tue Dec 04 13:41:14 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/views/group.py	Tue Dec 04 13:55:35 2012 +0100
@@ -9,7 +9,6 @@
 from ldt.security.utils import add_change_attr, get_userlist, get_userlist_group
 from ldt.security.cache import get_cached_checker, cached_assign
 from ldt.user.forms import PictureForm
-import logging
 
 
 @login_required
--- a/src/ldt/ldt/ldt_utils/views/project.py	Tue Dec 04 13:41:14 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/views/project.py	Tue Dec 04 13:55:35 2012 +0100
@@ -17,7 +17,7 @@
 from ldt.user.forms import PictureForm
 import lxml.etree
 import math
-import logging
+
 
 @login_required
 def create_ldt_view(request):
--- a/src/ldt/ldt/security/utils.py	Tue Dec 04 13:41:14 2012 +0100
+++ b/src/ldt/ldt/security/utils.py	Tue Dec 04 13:55:35 2012 +0100
@@ -1,9 +1,9 @@
 from django.conf import settings
 from django.contrib.contenttypes.models import ContentType
 from django.core.cache import cache
-from guardian.shortcuts import assign, remove_perm, get_users_with_perms, get_groups_with_perms, get_objects_for_user
+from guardian.shortcuts import remove_perm, get_users_with_perms, get_groups_with_perms, get_objects_for_user
 from cache import get_cached_userlist, cached_assign
-from ldt.security import change_security, get_current_user
+from ldt.security import change_security
 import types
   
 def unprotect_instance(instance):
--- a/web/ldtplatform/templates/registration/login.html	Tue Dec 04 13:41:14 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-{% extends "registration/base.html" %}
-{% load i18n %}
-{% load absstatic %}
-{% load static %}
-
-{% block css_import %}
-	{{ block.super }}
-	<link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/>
-	<link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' />
-{% endblock %}
-
-{% block login %}
-{% endblock %}
-
-{% block content_title %}{% trans 'Log in' %}{% endblock %}
-{% block iricontent %}
-    {% if form.errors %}
-   	<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
-   {% endif %}
-  	<div class="span-24 last">
-        <form action="" method='post' id="login-form">
-        	<div id="loginform_div" class="span-12">
-            {% csrf_token %}
-            <input type="hidden" name="next" value="{{ next }}" />
-	        <ul id="login_fields_list">
-	        {{form.as_ul}}
-	        </ul>
-            <ul>
-                <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
-            </ul>
-            <div id="submitcontent-buttons-login" class="span-24 last">
-                <button class="button"type="submit" value="login">{% trans "login" %}</button>
-            </div>
-            </div>
-	    </form>
-        <div id="login_links" class="span-12 last">
-            <div id="login_links_list" class="span-12 last">
-            {% if social_list %}
-            <p>{% trans "Or login with your external account" %}&nbsp;:</p>
-            <ul>
-           {% for backend_name in social_list %}
-             
-       		<li><a href="{{ backend_name }}"><img src='{% absstatic "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/>&nbsp;{{ backend_name }}</a></li>
-           
-           {% endfor %}
-           {% comment %}{{social_list|safe}}{% endcomment %}
-            </ul>
-            {% endif %}
-            </div>
-        </div>
-	</div> 
-
-{% endblock %}
-
-
-