Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
81e479a1
Kaydet (Commit)
81e479a1
authored
Agu 25, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed some colons that shouldn't be there (probably leftovers from
docstring conversion).
üst
27e4aa31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
26 deletions
+52
-26
libcgi.tex
Doc/lib/libcgi.tex
+26
-13
libcgi.tex
Doc/libcgi.tex
+26
-13
No files found.
Doc/lib/libcgi.tex
Dosyayı görüntüle @
81e479a1
...
@@ -155,10 +155,12 @@ These classes, present in earlier versions of the \code{cgi} module, are still
...
@@ -155,10 +155,12 @@ These classes, present in earlier versions of the \code{cgi} module, are still
supported for backward compatibility. New applications should use the
supported for backward compatibility. New applications should use the
FieldStorage class.
FieldStorage class.
\code
{
SvFormContentDict
}
: single value form content as dictionary; assumes each
\code
{
SvFormContentDict
}
single value form content as dictionary; assumes each
field name occurs in the form only once.
field name occurs in the form only once.
\code
{
FormContentDict
}
: multiple value form content as dictionary (the form
\code
{
FormContentDict
}
multiple value form content as dictionary (the form
items are lists of values). Useful if your form contains multiple
items are lists of values). Useful if your form contains multiple
fields with the same name.
fields with the same name.
...
@@ -175,18 +177,22 @@ These are useful if you want more control, or if you want to employ
...
@@ -175,18 +177,22 @@ These are useful if you want more control, or if you want to employ
some of the algorithms implemented in this module in other
some of the algorithms implemented in this module in other
circumstances.
circumstances.
\begin{funcdesc}
{
parse
}{
fp
}
: Parse a query in the environment or from a file (default
\code
{
sys.stdin
}
).
\begin{funcdesc}
{
parse
}{
fp
}
Parse a query in the environment or from a file (default
\code
{
sys.stdin
}
).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
qs
}{
qs
}
: parse a query string given as a string argument (data of type
\begin{funcdesc}
{
parse
_
qs
}{
qs
}
parse a query string given as a string argument (data of type
\code
{
application/x-www-form-urlencoded
}
).
\code
{
application/x-www-form-urlencoded
}
).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
multipart
}{
fp
\,
pdict
}
: parse input of type
\code
{
multipart/form-data
}
(for
\begin{funcdesc}
{
parse
_
multipart
}{
fp
\,
pdict
}
parse input of type
\code
{
multipart/form-data
}
(for
file uploads). Arguments are
\code
{
fp
}
for the input file and
file uploads). Arguments are
\code
{
fp
}
for the input file and
\code
{
pdict
}
for the dictionary containing other parameters of
\code
{
content-type
}
header
\code
{
pdict
}
for the dictionary containing other parameters of
\code
{
content-type
}
header
Returns a dictionary just like
\code
{
parse
_
qs()
}
: keys are the field names, each
Returns a dictionary just like
\code
{
parse
_
qs()
}
keys are the field names, each
value is a list of values for that field. This is easy to use but not
value is a list of values for that field. This is easy to use but not
much good if you are expecting megabytes to be uploaded -- in that case,
much good if you are expecting megabytes to be uploaded -- in that case,
use the
\code
{
FieldStorage
}
class instead which is much more flexible. Note
use the
\code
{
FieldStorage
}
class instead which is much more flexible. Note
...
@@ -197,29 +203,36 @@ file uploads). Arguments are \code{fp} for the input file and
...
@@ -197,29 +203,36 @@ file uploads). Arguments are \code{fp} for the input file and
that.
that.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
header
}{
string
}
: parse a header like
\code
{
Content-type
}
into a main
\begin{funcdesc}
{
parse
_
header
}{
string
}
parse a header like
\code
{
Content-type
}
into a main
content-type and a dictionary of parameters.
content-type and a dictionary of parameters.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
test
}{}
: robust test CGI script, usable as main program.
\begin{funcdesc}
{
test
}{}
robust test CGI script, usable as main program.
Writes minimal HTTP headers and formats all information provided to
Writes minimal HTTP headers and formats all information provided to
the script in HTML form.
the script in HTML form.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
environ
}{}
: format the shell environment in HTML.
\begin{funcdesc}
{
print
_
environ
}{}
format the shell environment in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
form
}{
form
}
: format a form in HTML.
\begin{funcdesc}
{
print
_
form
}{
form
}
format a form in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
directory
}{}
: format the current directory in HTML.
\begin{funcdesc}
{
print
_
directory
}{}
format the current directory in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
environ
_
usage
}{}
: print a list of useful (used by CGI) environment variables in
\begin{funcdesc}
{
print
_
environ
_
usage
}{}
print a list of useful (used by CGI) environment variables in
HTML.
HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
: convert the characters
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
convert the characters
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
sequences. Use this if you need to display text that might contain
sequences. Use this if you need to display text that might contain
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
...
...
Doc/libcgi.tex
Dosyayı görüntüle @
81e479a1
...
@@ -155,10 +155,12 @@ These classes, present in earlier versions of the \code{cgi} module, are still
...
@@ -155,10 +155,12 @@ These classes, present in earlier versions of the \code{cgi} module, are still
supported for backward compatibility. New applications should use the
supported for backward compatibility. New applications should use the
FieldStorage class.
FieldStorage class.
\code
{
SvFormContentDict
}
: single value form content as dictionary; assumes each
\code
{
SvFormContentDict
}
single value form content as dictionary; assumes each
field name occurs in the form only once.
field name occurs in the form only once.
\code
{
FormContentDict
}
: multiple value form content as dictionary (the form
\code
{
FormContentDict
}
multiple value form content as dictionary (the form
items are lists of values). Useful if your form contains multiple
items are lists of values). Useful if your form contains multiple
fields with the same name.
fields with the same name.
...
@@ -175,18 +177,22 @@ These are useful if you want more control, or if you want to employ
...
@@ -175,18 +177,22 @@ These are useful if you want more control, or if you want to employ
some of the algorithms implemented in this module in other
some of the algorithms implemented in this module in other
circumstances.
circumstances.
\begin{funcdesc}
{
parse
}{
fp
}
: Parse a query in the environment or from a file (default
\code
{
sys.stdin
}
).
\begin{funcdesc}
{
parse
}{
fp
}
Parse a query in the environment or from a file (default
\code
{
sys.stdin
}
).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
qs
}{
qs
}
: parse a query string given as a string argument (data of type
\begin{funcdesc}
{
parse
_
qs
}{
qs
}
parse a query string given as a string argument (data of type
\code
{
application/x-www-form-urlencoded
}
).
\code
{
application/x-www-form-urlencoded
}
).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
multipart
}{
fp
\,
pdict
}
: parse input of type
\code
{
multipart/form-data
}
(for
\begin{funcdesc}
{
parse
_
multipart
}{
fp
\,
pdict
}
parse input of type
\code
{
multipart/form-data
}
(for
file uploads). Arguments are
\code
{
fp
}
for the input file and
file uploads). Arguments are
\code
{
fp
}
for the input file and
\code
{
pdict
}
for the dictionary containing other parameters of
\code
{
content-type
}
header
\code
{
pdict
}
for the dictionary containing other parameters of
\code
{
content-type
}
header
Returns a dictionary just like
\code
{
parse
_
qs()
}
: keys are the field names, each
Returns a dictionary just like
\code
{
parse
_
qs()
}
keys are the field names, each
value is a list of values for that field. This is easy to use but not
value is a list of values for that field. This is easy to use but not
much good if you are expecting megabytes to be uploaded -- in that case,
much good if you are expecting megabytes to be uploaded -- in that case,
use the
\code
{
FieldStorage
}
class instead which is much more flexible. Note
use the
\code
{
FieldStorage
}
class instead which is much more flexible. Note
...
@@ -197,29 +203,36 @@ file uploads). Arguments are \code{fp} for the input file and
...
@@ -197,29 +203,36 @@ file uploads). Arguments are \code{fp} for the input file and
that.
that.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
parse
_
header
}{
string
}
: parse a header like
\code
{
Content-type
}
into a main
\begin{funcdesc}
{
parse
_
header
}{
string
}
parse a header like
\code
{
Content-type
}
into a main
content-type and a dictionary of parameters.
content-type and a dictionary of parameters.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
test
}{}
: robust test CGI script, usable as main program.
\begin{funcdesc}
{
test
}{}
robust test CGI script, usable as main program.
Writes minimal HTTP headers and formats all information provided to
Writes minimal HTTP headers and formats all information provided to
the script in HTML form.
the script in HTML form.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
environ
}{}
: format the shell environment in HTML.
\begin{funcdesc}
{
print
_
environ
}{}
format the shell environment in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
form
}{
form
}
: format a form in HTML.
\begin{funcdesc}
{
print
_
form
}{
form
}
format a form in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
directory
}{}
: format the current directory in HTML.
\begin{funcdesc}
{
print
_
directory
}{}
format the current directory in HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
print
_
environ
_
usage
}{}
: print a list of useful (used by CGI) environment variables in
\begin{funcdesc}
{
print
_
environ
_
usage
}{}
print a list of useful (used by CGI) environment variables in
HTML.
HTML.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
: convert the characters
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
convert the characters
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
sequences. Use this if you need to display text that might contain
sequences. Use this if you need to display text that might contain
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment