[open-ils-commits] r173 - servres/trunk/conifer/syrup (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 13 16:28:36 EDT 2009
Author: artunit
Date: 2009-03-13 16:28:32 -0400 (Fri, 13 Mar 2009)
New Revision: 173
Modified:
servres/trunk/conifer/syrup/views.py
Log:
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2009-03-13 16:14:50 UTC (rev 172)
+++ servres/trunk/conifer/syrup/views.py 2009-03-13 20:28:32 UTC (rev 173)
@@ -261,10 +261,22 @@
def instructor_detail(request, instructor_id):
page_num = int(request.GET.get('page', 1))
count = int(request.GET.get('count', 5))
+ '''
+ i am not sure this is the best way to go from instructor
+ to course
+ '''
+ members = models.Member.objects.get(user__id=instructor_id,
+ role='INSTR')
paginator = Paginator(models.Course.objects.
- filter(member__id=instructor_id).
- filter(active=True).order_by('title'), count)
+ filter(member__id=members.id).
+ order_by('title'), count)
+ '''
+ no concept of active right now, maybe suppressed is a better
+ description anyway?
+ '''
+ # filter(active=True).order_by('title'), count)
+
return g.render('courses.xhtml', paginator=paginator,
page_num=page_num,
count=count)
More information about the open-ils-commits
mailing list