Show
Ignore:
Timestamp:
12/23/09 06:06:58 (2 years ago)
Author:
dray
Message:

freeversity changes, initial work toward deprecating OpenOCW

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • enpraxis.educommons/trunk/enpraxis/educommons/browser/__init__.py

    r546 r632  
    9595 
    9696        return title, content 
     97 
     98class DivisionListingView(BrowserView): 
     99    """ Return Division in the School """ 
     100 
     101    def getDivisions(self): 
     102        """ Get Sorted Divisions  """ 
     103 
     104        portal_catalog = self.context.portal_catalog 
     105        brains = portal_catalog(path= {'query':'/'.join(self.context.getPhysicalPath())+'/', 'depth':2}, portal_type='Division') 
     106 
     107        #brains = list(brains) 
     108        #brains.sort(lambda x, y : cmp(self.ecutil.getFullCourseTitle(x),self.ecutil.getFullCourseTitle(y))) 
     109 
     110        return brains 
     111 
    97112 
    98113class SortedCourseListingView(BrowserView):