Changeset 1711


Ignore:
Timestamp:
05/04/07 16:08:23 (12 years ago)
Author:
gabor
Message:

fixed #1191 spent 10h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GroupBlog.py

    r1673 r1711  
    407407    def do_leaving(self, userid, groupid): 
    408408        try: 
     409            for x in self.getGroupMaterials(): 
     410                x.getObject().setGroupsShared('no_group') 
    409411            self.acl_users.source_groups.removePrincipalFromGroup(userid, groupid) 
     412            if len(self.getGroupMembers()) <= 0: 
     413                groupTool = getToolByName(self, 'portal_groups') 
     414                groupTool.removeGroups([self.getId()]) 
    410415        except: 
    411416            return 1 
Note: See TracChangeset for help on using the changeset viewer.