Changeset 3432 for pykota/trunk/bin/pkusers
- Timestamp:
- 10/05/08 19:04:08 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkusers
r3431 r3432 70 70 else : 71 71 ugroup.addUserToGroup(user) 72 73 def sanitizeNames(self, names, isgroups) :74 """Sanitize users and groups names if needed."""75 if not self.config.isAdmin :76 username = pwd.getpwuid(os.geteuid())[0]77 if isgroups :78 user = self.storage.getUser(username)79 if user.Exists :80 return [ g.Name for g in self.storage.getUserGroups(user) ]81 return [ username ]82 return names83 72 84 73 def main(self, names, options) :