Changeset 544

Show
Ignore:
Timestamp:
08/07/09 13:14:32 (3 years ago)
Author:
jon
Message:

Adding layers to collective.contentlicensing overrides

Location:
enpraxis.educommons/trunk/enpraxis/educommons
Files:
2 modified

Legend:

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

    r506 r544  
    308308        return copyright, holder, license_name, license_url, license_button 
    309309 
    310  
    311  
    312310    def getCitationInfo(self): 
    313311        """ Gets the citation information """ 
     
    327325            if parent.instructorAsCreator == True: 
    328326                instr_name = parent.instructorName 
    329                 names = [instr_name.strip()] 
     327                if instr_name != u'': 
     328                    names = [instr_name.strip()] 
    330329                names += [name.strip() for name in parent.Creators()] 
    331330                if len(self.context.Creators()) > 1: 
     
    334333            if self.context.instructorAsCreator == True: 
    335334                instr_name = self.context.instructorName 
    336                 names = [instr_name.strip()] 
     335                if instr_name != u'': 
     336                    names = [instr_name.strip()] 
    337337            names += [name.strip() for name in self.context.Creators()] 
    338338        else: 
     
    344344 
    345345            crs = cr.split(' ') 
    346              
    347346 
    348347            for part in crs[:-1]: 
  • enpraxis.educommons/trunk/enpraxis/educommons/overrides.zcml

    r534 r544  
    2424    template="browser/citation_view.pt" 
    2525    permission="zope2.View" 
     26    layer="collective.contentlicensing.interfaces.IContentLicensingLayer" 
    2627    /> 
    2728 
     
    3233    template="browser/copyright_byline.pt" 
    3334    permission="zope2.View" 
     35    layer="collective.contentlicensing.interfaces.IContentLicensingLayer" 
    3436    /> 
    3537