def admins(request, xmlrpc_setup): # Track the admins group tracker = GroupTracker(name=u'admins', description=u'Account administrators group') tracker.exists = True tracker.track_create() tracker.attrs.update(member_user=[u'admin']) return tracker
def managed_group(request, user): user.ensure_exists() tracker = GroupTracker(name=user.uid, description=u'User private group for %s' % user.uid) tracker.exists = True # Managed group gets created when user is created tracker.track_create() return tracker
def trustadmins(request): # Track the 'trust admins' group tracker = GroupTracker(name=u'trust admins', description=u'Trusts administrators group') tracker.exists = True tracker.track_create() tracker.attrs.update(member_user=[u'admin']) return tracker
def trustadmins(request): # Track the 'trust admins' group tracker = GroupTracker( name=u'trust admins', description=u'Trusts administrators group' ) tracker.exists = True tracker.track_create() tracker.attrs.update(member_user=[u'admin']) return tracker
def managed_group(request, user): user.ensure_exists() tracker = GroupTracker( name=user.uid, description=u'User private group for %s' % user.uid ) tracker.exists = True # Managed group gets created when user is created tracker.track_create() return tracker
def managed_group(request, user): user.ensure_exists() tracker = GroupTracker(name=user.uid, description=u'User private group for %s' % user.uid) tracker.exists = True # Managed group gets created when user is created tracker.track_create() # Managed groups don't have a SID del tracker.attrs['ipantsecurityidentifier'] return tracker