#NEWLINE# def _users( self ) : #NEWLINE# #INDENT# '\n        Return a list of two-tuples giving links to user resources and text to\n        associate with those links.\n        ' #NEWLINE# users = [ ] #NEWLINE# for user in self . _pwd . getpwall ( ) : #NEWLINE# #INDENT# ( name , passwd , uid , gid , gecos , dir , shell ) = user #NEWLINE# realname = gecos . split ( ',' ) [ 0 ] #NEWLINE# if ( not realname ) : #NEWLINE# #INDENT# realname = name #NEWLINE# #UNINDENT# if os . path . exists ( os . path . join ( dir , self . userDirName ) ) : #NEWLINE# #INDENT# users . append ( ( name , ( realname + ' (file)' ) ) ) #NEWLINE# #UNINDENT# twistdsock = os . path . join ( dir , self . userSocketName ) #NEWLINE# if os . path . exists ( twistdsock ) : #NEWLINE# #INDENT# linkName = ( name + '.twistd' ) #NEWLINE# users . append ( ( linkName , ( realname + ' (twistd)' ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return users