Changeset 3753 for WAeUP_SRP


Ignore:
Timestamp:
6 Nov 2008, 08:31:03 (16 years ago)
Author:
Henrik Bettermann
Message:

allow more than one lecturer in course

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/courses_catalog.xml

    r3689 r3753  
    1313  <indexed_attr value="code"/>
    1414 </index>
    15  <index name="lecturer" meta_type="FieldIndex">
     15 <index name="lecturer" meta_type="TextIndex">
    1616  <indexed_attr value="lecturer"/>
    1717 </index>
  • WAeUP_SRP/trunk/skins/waeup_student/getLecturerCoursesInfo.py

    r3611 r3753  
    1313"""
    1414
     15#from Products.AdvancedQuery import Eq, Between, Le,In
    1516mtool = context.portal_membership
    1617member = mtool.getAuthenticatedMember()
     
    3637
    3738res = context.courses_catalog(lecturer=lec_id)
     39#query = Eq('lecturer',lec_id)
     40#res = context.courses_catalog.evalAdvancedQuery(query)   #works both with lecturer as TextIndex
    3841items = [ brain for brain in res]
    3942items.sort(cmpsemester)
Note: See TracChangeset for help on using the changeset viewer.