Changeset 1943


Ignore:
Timestamp:
08/16/07 16:49:24 (12 years ago)
Author:
jukka
Message:

Fixed #1489, but couldn't fix the core problem. See if this happens again.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Extensions/Install.py

    r1919 r1943  
    274274                    obj.setSubject_area(new) 
    275275        print >>out, "Migration from 1.11.0 complete" 
     276 
    276277    if doWeMigrate(old,'1.12.0'): 
    277278        print >>out, "Starting migration from 1.12.0" 
     279        print >>out, "  Changing groups to keep their members in Archetype field instead of grouptool..." 
    278280        community=self.community 
    279281        groups = community.objectIds('GroupBlog') 
     
    293295            else: 
    294296                gtool.removeGroups([gid], keep_workspaces=1) 
     297        print >>out, "Migration from 1.12.0 complete" 
     298 
    295299    if doWeMigrate(old,'1.12.1'): 
    296300        print >>out, "Starting migration from 1.12.1" 
     301        print >>out, "  Changing info about 'group editing this resource' to use reference instead of ownership..." 
    297302        community=self.community 
    298303        for obj in self.content.objectValues(('MultimediaMaterial','PILOTMaterial', 'PresentationMaterial')): 
     
    307312                if group: 
    308313                    obj.setGroupEditing(group.UID()) 
     314        print >>out, "Migration from 1.12.1 complete" 
     315 
     316    if doWeMigrate(old,'1.12.2'): 
     317        print >>out, "Starting migration from 1.12.2" 
     318        print >>out, "  Checking if members have defunct portraits and if so, switching the hasCoverImage flag to False..." 
     319        community=self.community 
     320        for m in community.objectValues('MemberFolder'): 
     321            if m.getHasCoverImage(): 
     322                print m.id 
     323                if not m.getCoverImage(): 
     324                    print 'Broken coverImage: %s' % m.id 
     325                    m.setHasCoverImage(False) 
     326        print >>out, "Migration from 1.12.2 complete" 
     327             
     328 
    309329             
    310330 
  • trunk/MemberFolder.py

    r1937 r1943  
    382382            return self.getCoverImage() 
    383383        else: 
    384             return getattr(self.community,author).getCoverImage() 
     384            return self.getMemberFolderById(author).getCoverImage() 
    385385 
    386386    def getPortraitURL(self,author=None): 
  • trunk/skins/lemill/script_changeCoverImage.cpy

    r1881 r1943  
    4444    context.setCoverImage(file) 
    4545 
    46 if not context.getHasCoverImage(): 
     46if not context.getHasCoverImage() and context.getCoverImage(): 
    4747    context.setHasCoverImage(True) 
    4848 
  • trunk/version.txt

    r1919 r1943  
    1 1.12.2 
     11.12.3 
Note: See TracChangeset for help on using the changeset viewer.