From: gfawcett Date: Wed, 8 Apr 2009 19:20:17 +0000 (+0000) Subject: fixed more root-related problems X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=92fa5e3646dfa200f8f9666dd6e8d0efe4d447ad;p=Syrup.git fixed more root-related problems git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@306 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/genshi_namespace.py b/conifer/genshi_namespace.py index 46cc013..f2424f9 100644 --- a/conifer/genshi_namespace.py +++ b/conifer/genshi_namespace.py @@ -9,11 +9,11 @@ import django.forms # this probably ought to be a method on User, or another model class. def instructor_url(instructor, suffix=''): - return '/syrup/instructor/%d/%s' % (instructor.id, suffix) + return '/instructor/%d/%s' % (instructor.id, suffix) # added to make department browse def department_url(department, suffix=''): - return '/syrup/department/%d/%s' % (department.id, suffix) + return '/department/%d/%s' % (department.id, suffix) def call_or_value(obj, dflt=None): diff --git a/conifer/syrup/views.py b/conifer/syrup/views.py index 6f8dfab..099b361 100644 --- a/conifer/syrup/views.py +++ b/conifer/syrup/views.py @@ -136,7 +136,7 @@ def _fast_user_membership_query(user_id, course_id, where=None): def _access_denied(request, message): if request.user.is_anonymous(): # then take them to login screen.... - dest = request.META['SCRIPT_NAME'] + '/accounts/login/?next=' + request.environ['PATH_INFO'] + dest = request.META['SCRIPT_NAME'] + '/accounts/login/?next=' + request.META['PATH_INFO'] return HttpResponseRedirect(dest) else: return simple_message(_('Access denied.'), message, diff --git a/conifer/templates/instructors.xhtml b/conifer/templates/instructors.xhtml index 28ff97b..817003f 100644 --- a/conifer/templates/instructors.xhtml +++ b/conifer/templates/instructors.xhtml @@ -19,7 +19,7 @@ title = _('Instructors') Name - ${user.last_name}, ${user.first_name} + ${user.last_name}, ${user.first_name} ${pagetable(paginator, count, pagerow, pageheader)}