2010-08-03 1 views

답변

0

일반적으로 아무것도!

form = cgi.FieldStorage() 

를 찾지 못했습니다

def __init__(self, fp=None, headers=None, outerboundary="", 
      environ=os.environ, keep_blank_values=0, strict_parsing=0): 
    """Constructor. Read multipart/* until last part. 

    Arguments, all optional: 

    fp    : file pointer; default: sys.stdin 
     (not used when the request method is GET) 

    headers   : header dictionary-like object; default: 
     taken from environ as per CGI spec 

    outerboundary : terminating multipart boundary 
     (for internal use only) 

    environ   : environment dictionary; default: os.environ 

    keep_blank_values: flag indicating whether blank values in 
     URL encoded forms should be treated as blank strings. 
     A true value indicates that blanks should be retained as 
     blank strings. The default false value indicates that 
     blank values are to be ignored and treated as if they were 
     not included. 

    strict_parsing: flag indicating what to do with parsing errors. 
     If false (the default), errors are silently ignored. 
     If true, errors raise a ValueError exception. 

    """ 
+0

그래서 뜻 이죠 뭐? ... – Evgeny

+0

내 말은, 보통 그렇습니다.하지만 do_GET의 HTTPRequestHandler에 있으면 전역 변수에 양식에 대한 정보가 없기 때문에 무언가를 부여해야합니다. – Evgeny