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/coursestopic.py

    r506 r632  
    5151        full_title = self.ecutil.getFullCourseTitle(brain) 
    5252        return full_title 
     53         
     54    def getSchoolInfo(self): 
     55        """ Return URL and title for a School """         
     56        if self.context.aq_inner.aq_parent.portal_type == 'School': 
     57            return self.context.aq_inner.aq_parent 
    5358 
    5459         
     
    117122    def isOpenOCW(self): 
    118123        return IOpenOCWSite.providedBy(self.context.portal_url.getPortalObject()) 
    119          
     124 
     125class SchoolPageView(BrowserView): 
     126    """ A default school page view """ 
     127 
     128    __call__ = ViewPageTemplateFile('templates/school_view.pt') 
     129 
    120130 
    121131class CoursePageView(BrowserView):