Changeset 3477 for WAeUP_SRP/base


Ignore:
Timestamp:
1 May 2008, 05:43:35 (17 years ago)
Author:
Henrik Bettermann
Message:

use courses_catalog instead of portal_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Academics.py

    r3438 r3477  
    789789
    790790    def getCourseEntry(self,cid):
    791         res = self.portal_catalog({'meta_type': "Course",
    792                                            'id': cid})
     791        res = self.courses_catalog({'code': cid})
    793792        if res:
    794793            return res[-1]
     
    803802        #print self.id, self.aq_parent.id
    804803        if ce:
    805             return "%s" % ce.Title
     804            return "%s" % ce.title
    806805        return "No such course"
    807806
Note: See TracChangeset for help on using the changeset viewer.