Ignore:
Timestamp:
27 Aug 2013, 19:13:51 (11 years ago)
Author:
Henrik Bettermann
Message:

After some experiments with dynamical roles which allow lecturers to edit the score attribute of course tickets through the UI, I decided to discard the idea completely. It's not feasible and very dangerous to enable lecturers to edit course tickets directly: There are too many course tickets, too many lecturers and to many restrictions. The solution will be that lecturers export the course tickets of their courses, fill the score column and re-upload the csv file. This is still not easy to implement because we can't allow lecturers to access the data center directly. Further discussions are necessary ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r10479 r10539  
    2222import grok
    2323from zope.component.interfaces import IFactory
    24 from zope.component import createObject
     24from zope.catalog.interfaces import ICatalog
     25from zope.component import createObject, queryUtility
    2526from zope.interface import implementedBy
    2627from waeup.kofa.interfaces import academic_sessions_vocab
     
    270271        return getGradeWeightFromScore(self.score)[1]
    271272
     273    @property
     274    def course(self):
     275        """Returns the course the ticket is referring to. Returns
     276        None if the course has been removed.
     277
     278        This method is not used in Kofa anymore.
     279        """
     280        cat = queryUtility(ICatalog, name='courses_catalog')
     281        result = cat.searchResults(code=(self.code, self.code))
     282        if len(result) != 1:
     283            return None
     284        return list(result)[0]
     285
    272286CourseTicket = attrs_to_fields(CourseTicket)
    273287
Note: See TracChangeset for help on using the changeset viewer.