Ignore:
Timestamp:
07/14/06 15:38:24 (13 years ago)
Author:
jukka
Message:

Fixed #511, spent 2h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Extensions/Install.py

    r438 r450  
    199199                x.setRights('CreativeCommons') 
    200200            print >>out, "Migration from 0.4 complete" 
    201     if old<='0.4.1': 
     201        if old<='0.4.1': 
    202202            print >>out, "Starting migration from 0.4.1" 
    203         groupdatatool=getToolByName(self,"portal_groupdata") 
    204         for prop in ['tags','email','scope']: 
    205             if groupdatatool.hasProperty(prop): 
    206                 groupdatatool.manage_delProperties([prop]) 
    207             print >>out, "Migration from 0.4.1 complete" 
     203            groupdatatool=getToolByName(self,"portal_groupdata") 
     204            for prop in ['tags','email','scope']: 
     205                if groupdatatool.hasProperty(prop): 
     206                    groupdatatool.manage_delProperties([prop]) 
     207                print >>out, "Migration from 0.4.1 complete" 
     208        if old<='0.4.2': 
     209                print >>out, "Starting migration from 0.4.2" 
     210                for group in self.community.objectValues(('GroupBlog',)): 
     211                    for post in group.objectValues(('BlogPost',)): 
     212                        post._setProperty('left_slots', ['here/portlet_groupblog_actions/macros/portlet',], 'lines') 
     213                print >>out, "Migration from 0.4.2 complete" 
    208214        print >>out,"Migration completed." 
     215 
    209216 
    210217def uninstall(self): 
Note: See TracChangeset for help on using the changeset viewer.