Server account request form
For new requests, or forgotten passwords. """ if ("GET" == os.environ["REQUEST_METHOD"]): print """" # for k,v in os.environ.items(): # print k, v, "
" else: form = cgi.FieldStorage(keep_blank_values=1) if ('Submit Your Request' == form.getvalue('submit')): try: if (( form.getvalue('password') == form.getvalue('pwcheck') ) and (len(form.getvalue('password')) >7)): print '
If everything looks OK, submit using the Verify Your Request button below.
' print '
" if (len(form.getvalue('password')) <8): print "(use a longer password)
" if ( form.getvalue('password') != form.getvalue('pwcheck')): print "(type more carefully next time)
" except: print "Bad input, try again" elif ('Verify Your Request' == form.getvalue('submit')): print 'Your request for user %s' % (form.getvalue('username')) print "was submitted at", time.ctime(),"
" else: print "Problem - no submission" print """