- Timestamp:
- 06/18/07 12:12:08 (6 years ago)
- Children:
- 231baae5e52de5b97c1d1f8533751d9f3e39b30b
- Parents:
- 847909582f0defeb8a93b0c4fd2f374a0da0db7f
- git-committer:
- iacopo <iacopo@…> (06/18/07 12:12:08)
- Files:
-
- 1 modified
-
octofuss/users/ui/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
octofuss/users/ui/__init__.py
rbf2e42e rc6e3b1b 558 558 def show_user_groups(self, obj, userList, user_view, group_view): 559 559 """ Show groups of selected user """ 560 """561 560 model = user_view.get_model() 562 561 … … 572 571 #Remove primary group 573 572 primaryGroupName = backend.getGroupByGid(backend.getUser(username).getGid().getValue()).getName().getValue() 574 try:575 userGroups.remove(primaryGroupName)576 except Exception,e:577 print e573 #try: 574 # userGroups.remove(primaryGroupName) 575 #except Exception,e: 576 # print e 578 577 579 578 import string 580 579 581 580 userGroups.sort() 582 stringGroups = string.capitalize(username)+"'s groups:\n" 581 stringGroups = string.capitalize(username)+"'s groups:\n\n" 582 i = 0 583 j = 0 583 584 for group in userGroups: 584 stringGroups = stringGroups +"- "+ group + "\n" 585 if backend.isUnixGroup(group): 586 stringGroups = stringGroups +"Unix: "+ group + "\n" 587 elif backend.isLdapGroup(group): 588 if group == primaryGroupName: 589 stringGroups = stringGroups +"Main group: "+ group + "\n" 590 else: 591 stringGroups = stringGroups +"Ldap: "+ group + "\n" 592 593 585 594 self.showDialog(stringGroups,gtk.MESSAGE_INFO) 586 """587 595 588 596
