Show
Ignore:
Timestamp:
10/05/08 19:04:08 (16 years ago)
Author:
jerome
Message:

edpykota now supports new style command line handling.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkusers

    r3431 r3432  
    7070            else : 
    7171                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 names 
    8372 
    8473    def main(self, names, options) :