Changeset 663
- Timestamp:
- 12 Oct 2006, 10:21:56 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/types/Course.xml
r578 r663 14 14 <property name="allow_discussion">False</property> 15 15 <property name="cps_is_searchable">True</property> 16 <property name="cps_proxy_type"> document</property>16 <property name="cps_proxy_type">folderishdocument</property> 17 17 <property name="cps_display_as_document_in_listing">True</property> 18 18 <property name="schemas"> -
WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml
r659 r663 14 14 <property name="allow_discussion">False</property> 15 15 <property name="cps_is_searchable">False</property> 16 <property name="cps_proxy_type"> document</property>16 <property name="cps_proxy_type">folderishdocument</property> 17 17 <property name="cps_display_as_document_in_listing">True</property> 18 18 <property name="schemas"> -
WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml
r659 r663 14 14 <property name="allow_discussion">False</property> 15 15 <property name="cps_is_searchable">False</property> 16 <property name="cps_proxy_type"> document</property>16 <property name="cps_proxy_type">folderishdocument</property> 17 17 <property name="cps_display_as_document_in_listing">True</property> 18 18 <property name="schemas"> -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r622 r663 29 29 items = [] 30 30 default = {'search_mode': 'name', 31 'review_state': ' created',31 'review_state': 'all', 32 32 'search_string': '' 33 33 } … … 73 73 onlyreview = with_review and not term 74 74 if onlyreview: 75 res = catalog(portal_type= portal_type_query,75 res = catalog(portal_type='Student', 76 76 review_state=state) 77 77 elif what == "student_id": … … 93 93 pt = portal_type_query 94 94 st = "%s*" % term.strip() 95 if with_review: 96 try: 97 res = catalog(portal_type=pt,SearchableText=st, 98 review_state=state) 99 except: 100 return context.students_manager_view(rendered = rend, 101 psm = 'Search string "%s" not allowed.' % term, 102 #psm = "%s, %s" % (psm,ds), 103 students = items, 104 is_manager = is_manager, 105 ) 106 else: 107 try: 108 res = catalog(portal_type=pt,SearchableText=st,) 109 except: 110 return context.students_manager_view(rendered = rend, 111 psm = 'Searchstring "%s" not allowed' % term, 112 #psm = "%s, %s" % (psm,ds), 113 students = items, 114 is_manager = is_manager, 115 ) 116 95 try: 96 res = catalog(portal_type=pt,SearchableText=st) 97 except: 98 return context.students_manager_view(rendered = rend, 99 psm = 'Search string "%s" not allowed.' % term, 100 #psm = "%s, %s" % (psm,ds), 101 students = items, 102 is_manager = is_manager, 103 ) 104 students = [] 117 105 if res: 118 106 for r in res: 119 107 if r.portal_type in ("StudentApplication","StudentPersonal"): 120 108 student = r.getObject().aq_parent 109 ## pp = '/'.join(r.getPath().split('/')[:-1]) 110 ## student_cat = catalog(pathindex=pp,portal_type='Student')[0] 111 ## student_rs = student_cat.review_state 112 ## student = student_cat.getObject() 121 113 else: 122 114 student = r.getObject() 123 if student not in items: 124 items.append(student) 125 students = [] 115 student_rs = wf.getInfoFor(student,'review_state','keiner') 116 if with_review and student_rs != state: 117 continue 118 items.append(student) 126 119 if items: 127 120 for item in items: 128 121 students.append(context.getStudentInfo(item)) 129 return context.students_manager_view(rendered = rend,122 return context.students_manager_view(rendered = rend, 130 123 psm = "%d matching Students found" % len(items), 131 #psm = "%s, %s" % (psm,ds),132 124 students = students, 133 125 is_manager = is_manager, 134 126 ) 127 return context.students_manager_view(rendered = rend, 128 psm = "Your search for %s in %s with state %s failed" % (st,what,state), 129 students = students, 130 is_manager = is_manager, 131 )
Note: See TracChangeset for help on using the changeset viewer.