Ignore:
Timestamp:
Jul 9, 2010 3:24:52 PM (10 years ago)
Author:
fenix
Message:

fixed bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/viewlets.py

    r2657 r2658  
    183183        self.selected_portal_tab = self.selected_tabs['portal'] 
    184184 
    185     @property 
     185    @memoize 
    186186    def is_plone_four(self): 
    187187        """Indicates if we are in plone 4. 
     
    189189        """ 
    190190        pm = getToolByName(aq_inner(self.context), 'portal_migration')  
    191         version = versionTupleFromString(pm.getSoftwareVersion()) 
     191        try: 
     192            version = versionTupleFromString(pm.getSoftwareVersion()) 
     193        except AttributeError: 
     194            version = versionTupleFromString(pm.getFileSystemVersion()) 
     195 
    192196        if version: 
    193197            return version[0] == 4 
Note: See TracChangeset for help on using the changeset viewer.