from htsworkflow.frontend.bcmagic.forms import BarcodeMagicForm
from htsworkflow.frontend.bcprinter.util import print_zpl_socket
from htsworkflow.frontend import settings
-from htsworkflow.util.jsonutil import encode_json
+#from htsworkflow.util.jsonutil import encode_json
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponse, HttpResponseRedirect
from django.template.loader import get_template
from django.contrib.auth.decorators import login_required
-
+try:
+ import json
+except ImportError, e:
+ import simplejson as json
INVENTORY_CONTEXT_DEFAULTS = {
'app_name': 'Inventory Tracker',
d['rows'] = rows
- return HttpResponse(encode_json(d), content_type="application/javascript")
+ return HttpResponse(json.dumps(d), content_type="application/javascript")
@login_required
def index(request):