remove dead app login_plugin
This commit is contained in:
parent
b5cbf318b2
commit
cc0b9a8d9e
|
@ -1,6 +1,3 @@
|
|||
recursive-include portail_citoyen/apps/login_plugin/templates *.html
|
||||
recursive-include portail_citoyen/apps/login_plugin/static *.css *.gif *.png *.js
|
||||
recursive-include portail_citoyen/apps/login_plugin/locale *.po *.mo
|
||||
recursive-include portail_citoyen/apps/data_source_plugin/templates *.html
|
||||
recursive-include portail_citoyen/apps/data_source_plugin/static *.css *.gif *.png *.js
|
||||
recursive-include portail_citoyen/apps/data_source_plugin/locale *.po *.mo
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.contrib.auth.forms import AuthenticationForm
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
from cms.plugin_base import CMSPluginBase
|
||||
from cms.plugin_pool import plugin_pool
|
||||
from models import LoginPlugin as LoginPluginModel
|
||||
|
||||
class LoginPlugin(CMSPluginBase):
|
||||
model = LoginPluginModel
|
||||
name = _('Login Plugin')
|
||||
render_template = "login_plugin/plugin.html"
|
||||
text_enabled = False
|
||||
|
||||
def render(self, context, instance, placeholdre):
|
||||
context.update({
|
||||
'form': AuthenticationForm(),
|
||||
'action': reverse('login'),
|
||||
})
|
||||
return context
|
||||
|
||||
plugin_pool.register_plugin(LoginPlugin)
|
|
@ -1,37 +0,0 @@
|
|||
# Translation of portail-citoyen strings
|
||||
# Copyright (C) 2013 Entr'ouvert
|
||||
# This file is distributed under the same license as the portail-citoyen package.
|
||||
# Benjamin Dauvergne <bdauvergne@entrouvert.com>, 2013.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: portail_citoyen 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-03-19 15:11+0100\n"
|
||||
"PO-Revision-Date: 2013-03-19 15:15+0100\n"
|
||||
"Last-Translator: Benjamin Dauvergne <bdauvergne@entrouvert.com>\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: cms_plugins.py:11
|
||||
msgid "Login Plugin"
|
||||
msgstr "Bloc de connexion"
|
||||
|
||||
#: templates/login_plugin/plugin.html:27
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" <p>Bonjour %(name)s !</p>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#: templates/login_plugin/plugin.html:31
|
||||
msgid "Logout"
|
||||
msgstr "Déconnexion"
|
||||
|
||||
#: templates/login_plugin/plugin.html:33
|
||||
msgid "Mon profil"
|
||||
msgstr ""
|
|
@ -1,6 +0,0 @@
|
|||
from cms.models import CMSPlugin
|
||||
|
||||
class LoginPlugin(CMSPlugin):
|
||||
|
||||
def __unicode__(self):
|
||||
return 'Login'
|
|
@ -1,27 +0,0 @@
|
|||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
<div id="login">
|
||||
{% if not request.user.is_authenticated %}
|
||||
<form action="{{ action }}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
{{ form.as_p }}
|
||||
|
||||
<input type="submit" value="Connexion" />
|
||||
{% if next %}
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
{% endif %}
|
||||
</form>
|
||||
<p><a href="{% url 'password_reset' %}">Mot de passe perdu ?</a></p>
|
||||
{% url 'registration_register' as registration_url %}
|
||||
{% if registration_url %}
|
||||
<p><a href="{{ registration_url }}">Pas encore de compte ?</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% blocktrans with name=request.user %}
|
||||
<p>Bonjour {{ name }} !</p>
|
||||
{% endblocktrans %}
|
||||
{% url 'auth_logout' as logout_url %}
|
||||
{% if logout_url %}<p><a href="{{ logout_url }}">{% trans "Logout" %}</a></p>{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
This file demonstrates writing tests using the unittest module. These will pass
|
||||
when you run "manage.py test".
|
||||
|
||||
Replace this with more appropriate tests for your application.
|
||||
"""
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
class SimpleTest(TestCase):
|
||||
def test_basic_addition(self):
|
||||
"""
|
||||
Tests that 1 + 1 always equals 2.
|
||||
"""
|
||||
self.assertEqual(1 + 1, 2)
|
|
@ -1 +0,0 @@
|
|||
# Create your views here.
|
|
@ -5135,16 +5135,6 @@
|
|||
"movie_url": "https://www.youtube.com/watch?v=4ria7AhD7ro"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": 606,
|
||||
"model": "login_plugin.loginplugin",
|
||||
"fields": {}
|
||||
},
|
||||
{
|
||||
"pk": 1289,
|
||||
"model": "login_plugin.loginplugin",
|
||||
"fields": {}
|
||||
},
|
||||
{
|
||||
"pk": 2,
|
||||
"model": "data_source_plugin.datasource",
|
||||
|
|
|
@ -140,7 +140,6 @@ INSTALLED_APPS = (
|
|||
'cms.plugins.teaser',
|
||||
'cms.plugins.video',
|
||||
'cmsplugin_text_wrapper',
|
||||
'login_plugin',
|
||||
'feed_plugin',
|
||||
'data_source_plugin',
|
||||
'a2_service_list_plugin',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
portail-citoyen-manage dumpdata --indent=2 sites cms cms.cmsplugin cmsplugin_text_wrapper \
|
||||
file googlemap link picture snippet teaser video login_plugin data_source_plugin \
|
||||
file googlemap link picture snippet teaser video data_source_plugin \
|
||||
a2_service_list_plugin feed_plugin idp attribute_aggregator > demo.json
|
||||
|
|
Reference in New Issue