~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/db.py

  • Committer: William Grant
  • Date: 2009-01-19 03:31:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090119033153-yluen63v59xyibq6
www/apps/groups: Port most of show_subject_panel to storm.
ivle.db: Remove get_subjects; it's no longer used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
871
871
 
872
872
    # SUBJECTS AND ENROLEMENT
873
873
 
874
 
    def get_subjects(self, dry=False):
875
 
        """
876
 
        Get all subjects in IVLE.
877
 
        Returns a list of dicts (all values strings), with the keys:
878
 
        subj_code, subj_name, subj_short_name, url
879
 
        """
880
 
        return self.get_all("subject",
881
 
            ("subjectid", "subj_code", "subj_name", "subj_short_name", "url"),
882
 
            dry)
883
 
 
884
874
    def get_offering_semesters(self, subjectid, dry=False):
885
875
        """
886
876
        Get the semester information for a subject as well as providing