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
281b2c62
Kaydet (Commit)
281b2c62
authored
Nis 18, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #536883: SimpleXMLRPCServer auto-docing subclass.
üst
b5c4b7be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
0 deletions
+116
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libdocxmlrpc.tex
Doc/lib/libdocxmlrpc.tex
+105
-0
whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+8
-0
DocXMLRPCServer.py
Lib/DocXMLRPCServer.py
+0
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/lib.tex
Dosyayı görüntüle @
281b2c62
...
...
@@ -231,6 +231,7 @@ and how to embed it in other applications.
\input
{
libcookie
}
\input
{
libxmlrpclib
}
\input
{
libsimplexmlrpc
}
\input
{
libdocxmlrpc
}
\input
{
libasyncore
}
\input
{
libasynchat
}
...
...
Doc/lib/libdocxmlrpc.tex
0 → 100644
Dosyayı görüntüle @
281b2c62
\section
{
\module
{
DocXMLRPCServer
}
---
Self-documenting XML-RPC server
}
\declaremodule
{
standard
}{
DocXMLRPCServer
}
\modulesynopsis
{
Self-documenting XML-RPC server implementation.
}
\moduleauthor
{
Brian Quinlan
}{
brianq@activestate.com
}
\sectionauthor
{
Brian Quinlan
}{
brianq@activestate.com
}
\versionadded
{
2.3
}
The
\module
{
DocXMLRPCServer
}
module extends the classes found in
\module
{
SimpleXMLRPCServer
}
to serve HTML documentation in response to
HTTP GET requests. Servers can either be free standing, using
\class
{
DocXMLRPCServer
}
, or embedded in a CGI environment, using
\class
{
DocCGIXMLRPCRequestHandler
}
.
\begin{classdesc}
{
DocXMLRPCServer
}{
addr
\optional
{
,
requestHandler
\optional
{
, logRequests
}}}
Create a new server instance. All parameters have the same meaning as
for
\class
{
SimpleXMLRPCServer.SimpleXMLRPCServer
}
;
\var
{
requestHandler
}
defaults to
\class
{
DocXMLRPCRequestHandler
}
.
\end{classdesc}
\begin{classdesc}
{
DocCGIXMLRPCRequestHandler
}{}
Create a new instance to handle XML-RPC requests in a CGI environment.
\end{classdesc}
\begin{classdesc}
{
DocXMLRPCRequestHandler
}{}
Create a new request handler instance. This request handler supports
XML-RPC POST requests, documentation GET requests, and modifies
logging so that the
\var
{
logRequests
}
parameter to the
\class
{
DocXMLRPCServer
}
constructor parameter is honored.
\end{classdesc}
\subsection
{
DocXMLRPCServer Objects
\label
{
doc-xmlrpc-servers
}}
The
\class
{
DocXMLRPCServer
}
class is derived from
\class
{
SimpleXMLRPCServer.SimpleXMLRPCServer
}
and provides a means of
creating self-documenting, stand alone XML-RPC servers. HTTP POST
requests are handled as XML-RPC method calls. HTTP GET requests are
handled by generating pydoc-style HTML documentation. This allows a
server to provide its own web-based documentation.
\begin{methoddesc}
{
set
_
server
_
title
}{
server
_
title
}
Set the title used in the generated HTML documentation. This title
will be used inside the HTML "title" element.
\end{methoddesc}
\begin{set_server_name}
{
server
_
name
}
Set the name used in the generated HTML documentation. This name will
appear at the top of the generated documentation inside a "h1"
element.
\end{methoddesc}
\begin{set_server_documentation}
{
server
_
documentation
}
Set the description used in the generated HTML documentation. This
description will appear as a paragraph, below the server name, in the
documentation.
\end{methoddesc}
\subsection
{
DocCGIXMLRPCRequestHandler
}
The
\class
{
DocCGIXMLRPCRequestHandler
}
class is derived from
\class
{
SimpleXMLRPCServer.CGIXMLRPCRequestHandler
}
and provides a means
of creating self-documenting, XML-RPC CGI scripts. HTTP POST requests
are handled as XML-RPC method calls. HTTP GET requests are handled by
generating pydoc-style HTML documentation. This allows a server to
provide its own web-based documentation.
\begin{methoddesc}
{
set
_
server
_
title
}{
server
_
title
}
Set the title used in the generated HTML documentation. This title
will be used inside the HTML "title" element.
\end{methoddesc}
\begin{methoddesc}
{
set
_
server
_
name
}{
server
_
name
}
Set the name used in the generated HTML documentation. This name will
appear at the top of the generated documentation inside a "h1"
element.
\end{methoddesc}
\begin{methoddesc}
{
set
_
server
_
documentation
}{
server
_
documentation
}
Set the description used in the generated HTML documentation. This
description will appear as a paragraph, below the server name, in the
documentation.
\end{methoddesc}
Doc/whatsnew/whatsnew23.tex
Dosyayı görüntüle @
281b2c62
...
...
@@ -1812,6 +1812,14 @@ of the URL is ASCII only.
To implement this change, the module
\module
{
stringprep
}
, the tool
\code
{
mkstringprep
}
and the
\code
{
punycode
}
encoding have been added.
\item
The new
\module
{
DocXMLRPCServer
}
allows to write
self-documenting XML-RPC servers. Run it in demo mode (as a program)
to see it in action: Pointing the Web browser to the RPC server
produces pydoc-style documentation; pointing xmlrpclib to the
server allows to invoke the actual methods.
Contributed by Brian Quinlan.
\end{itemize}
...
...
Lib/DocXMLRPCServer.py
0 → 100644
Dosyayı görüntüle @
281b2c62
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
281b2c62
...
...
@@ -118,6 +118,8 @@ Extension modules
Library
-------
-
The
self
-
documenting
XML
server
library
DocXMLRPCServer
was
added
.
-
Support
for
internationalized
domain
names
has
been
added
through
the
'idna'
and
'punycode'
encodings
,
the
'stringprep'
module
,
the
'mkstringprep'
tool
,
and
enhancements
to
the
socket
and
httplib
...
...
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