removed some unused functions

This commit is contained in:
Oskar Hahn 2013-03-15 01:34:17 +01:00
parent 43cd5aba00
commit 1a2ebf7b3b
3 changed files with 1 additions and 23 deletions

View File

@ -23,7 +23,6 @@ from django.utils import formats
from django.utils.translation import pgettext
from django.utils.translation import ugettext_lazy, ugettext_noop, ugettext as _
from openslides.utils.utils import _propper_unicode
from openslides.utils.person import PersonField
from openslides.config.models import config
from openslides.config.signals import default_config_value

View File

@ -29,7 +29,7 @@ from django.utils.translation import ugettext as _, ugettext_lazy, activate
from openslides.utils.pdf import stylesheet
from openslides.utils.template import Tab
from openslides.utils.utils import (
template, decodedict, encodedict, delete_default_permissions, html_strong)
template, delete_default_permissions, html_strong)
from openslides.utils.views import (
FormView, PDFView, CreateView, UpdateView, DeleteView, PermissionMixin,
RedirectView, SingleObjectMixin, ListView, QuestionMixin, DetailView)

View File

@ -131,26 +131,5 @@ def ajax_request(data):
return HttpResponse(json.dumps(data))
def _propper_unicode(text):
if not isinstance(text, unicode):
return u"%s" % text.decode('UTF-8')
else:
return text
def decodedict(dict):
newdict = {}
for key in dict:
newdict[key] = [dict[key][0].encode('utf-8')]
return newdict
def encodedict(dict):
newdict = {}
for key in dict:
newdict[key] = [unicode(dict[key][0].decode('utf-8'))]
return newdict
def html_strong(string):
return u"<strong>%s</strong>" % string