removed some unused functions
This commit is contained in:
parent
43cd5aba00
commit
1a2ebf7b3b
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user