HttpResponseForbidden)
from django.shortcuts import get_object_or_404
from django.utils import simplejson
-from django.utils.translation import ugettext as _
+from django.utils import translation
from _generics import * # TODO: should not import-star
from conifer.libsystems.marcxml import (marcxml_to_dictionary,
marcxml_dictionary_to_dc)
-from django.utils.translation import ugettext as _
-
+__builtins__['_'] = translation.ugettext
#-----------------------------------------------------------------------------
# Authorization
-from _common import *
-from django.utils.translation import ugettext as _
+from _common import *
from datetime import date
#-----------------------------------------------------------------------------
from _common import *
-from django.utils.translation import ugettext as _
#-----------------------------------------------------------------------------
# Site feeds
-from _common import *
-from django.utils.translation import ugettext as _
-from search import *
-#from lxml import etree
-#import libxml2
-#import libxslt
import os
+from _common import *
+from search import *
#-----------------------------------------------------------------------------
from conifer.plumbing.hooksystem import gethook, callhook
from conifer.syrup import models
-from django.utils import translation
-
-_ = translation.ugettext
+from django.utils.translation import ugettext as _
-from _common import *
-from conifer.syrup import integration
-from django.utils.translation import ugettext as _
-from xml.etree import ElementTree as ET
+from _common import *
+from conifer.syrup import integration
+from xml.etree import ElementTree as ET
@members_only
def item_detail(request, site_id, item_id):
from _common import *
-from django.utils.translation import ugettext as _
-from search import *
+from search import *
#-----------------------------------------------------------------------------
# Creating a new site