ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/ccs/admin/passwd.py
Revision: 592
Committed: 2009-10-13T07:26:55-07:00 (15 years, 8 months ago) by douglas
Content type: text/x-python
Original Path: admin/chfn.py
File size: 470 byte(s)
Log Message:
chfn!

File Contents

# User Rev Content
1 douglas 587 #!/usr/bin/env python
2     # CCS Computer Science
3 douglas 592 # Change Full Name
4 douglas 587 #
5     # Douglas Thrift
6     #
7     # $Id$
8    
9 douglas 591 import admin
10 douglas 590 import common
11 douglas 587 import re
12    
13     if __name__ == '__main__':
14 douglas 591 user = common.user()
15    
16 douglas 587 try:
17 douglas 592 name = None
18     string = re.compile('^[^:]+$')
19 douglas 587
20 douglas 592 while name is None or string.match(name) is None:
21     name = raw_input('Full Name: ')
22 douglas 587
23 douglas 591 if admin.master():
24 douglas 592 admin.chfn(user, name)
25    
26     admin.run(common.chfn_all(user, name))
27 douglas 587 except (EOFError, KeyboardInterrupt):
28 douglas 592 admin.eof()

Properties

Name Value
svn:executable *
svn:keywords Id