Changeset 15417 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 21 May 2019, 09:16:47 (6 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r15305 r15417 260 260 'accommodation'][str(accommodation_session)] 261 261 except KeyError: 262 self.owner = NOT_OCCUPIED 263 sh, sex, bt = self.bed_type.split('_') 264 bt = u'%s_%s_reserved' % (sh, sex) 265 self.bed_type = bt 266 notify(grok.ObjectModifiedEvent(self)) 262 267 return 263 268 if bedticket.maint_payment_made: -
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r15416 r15417 234 234 value = row['state'] 235 235 IWorkflowState(obj).setState(value) 236 notify(grok.ObjectModifiedEvent(obj)) 236 237 msg = _("State '${a}' set", mapping = {'a':value}) 237 238 history = IObjectHistory(obj) -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15405 r15417 263 263 form = self.request.form 264 264 self.hitlist = [] 265 if form.get('searchtype', None) in ('suspended', TRANSREQ, TRANSVAL): 265 if form.get('searchtype', None) in ( 266 'suspended', TRANSREQ, TRANSVAL, GRADUATED): 266 267 self.searchtype = form['searchtype'] 267 268 self.searchterm = None … … 305 306 form = self.request.form 306 307 self.hitlist = [] 307 if form.get('searchtype', None) in ('suspended', TRANSREQ, TRANSVAL): 308 if form.get('searchtype', None) in ( 309 'suspended', TRANSREQ, TRANSVAL, GRADUATED): 308 310 self.searchtype = form['searchtype'] 309 311 self.searchterm = None … … 374 376 self.context.addStudent(student) 375 377 IWorkflowState(student).setState(GRADUATED) 378 notify(grok.ObjectModifiedEvent(student)) 376 379 self.flash(_('Student record created.')) 377 380 self.redirect(self.url(self.context[student.student_id], 'index')) -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/containermanagepage.pt
r15163 r15417 22 22 <option i18n:translate="" value="transcript validated"> 23 23 in state 'transcript validated' (search term omitted) 24 </option> 25 <option i18n:translate="" value="graduated"> 26 in state 'graduated' (search term omitted) 24 27 </option> 25 28 </select> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/containerpage.pt
r15163 r15417 22 22 <option i18n:translate="" value="transcript validated"> 23 23 in state 'transcript validated' (search term omitted) 24 </option> 25 <option i18n:translate="" value="graduated"> 26 in state 'graduated' (search term omitted) 24 27 </option> 25 28 </select> -
main/waeup.kofa/trunk/src/waeup/kofa/students/catalog.py
r15163 r15417 29 29 from waeup.kofa.students.interfaces import IStudent, ICourseTicket 30 30 from waeup.kofa.university.vocabularies import course_levels 31 from waeup.kofa.students.workflow import (TRANSREQ, TRANSVAL)31 from waeup.kofa.students.workflow import TRANSREQ, TRANSVAL, GRADUATED 32 32 33 33 class StudentsCatalog(grok.Indexes): … … 89 89 hitlist.append(StudentQueryResultItem(student, view=view)) 90 90 return hitlist 91 elif searchtype in (TRANSREQ, TRANSVAL ):91 elif searchtype in (TRANSREQ, TRANSVAL, GRADUATED): 92 92 cat = queryUtility(ICatalog, name='students_catalog') 93 93 results = cat.searchResults(state=(searchtype, searchtype))
Note: See TracChangeset for help on using the changeset viewer.