Changeset 3753 for WAeUP_SRP/trunk
- Timestamp:
- 6 Nov 2008, 08:31:03 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/courses_catalog.xml
r3689 r3753 13 13 <indexed_attr value="code"/> 14 14 </index> 15 <index name="lecturer" meta_type=" FieldIndex">15 <index name="lecturer" meta_type="TextIndex"> 16 16 <indexed_attr value="lecturer"/> 17 17 </index> -
WAeUP_SRP/trunk/skins/waeup_student/getLecturerCoursesInfo.py
r3611 r3753 13 13 """ 14 14 15 #from Products.AdvancedQuery import Eq, Between, Le,In 15 16 mtool = context.portal_membership 16 17 member = mtool.getAuthenticatedMember() … … 36 37 37 38 res = 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 38 41 items = [ brain for brain in res] 39 42 items.sort(cmpsemester)
Note: See TracChangeset for help on using the changeset viewer.