You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by rm...@pobox.com on 2002/10/02 15:59:13 UTC
Documentation patch for kwargs change in publisher.py
To go along with my earlier patch adding **kwargs functionality to the
publisher.py dispatcher, here's a documentation patch to keep the docs
up-to-date.
--
Robin Munn
rmunn@pobox.com
--- doc-html/hand-pub-alg-args.html 2002-09-24 11:59:13.000000000 -0500
+++ doc-html/hand-pub-alg-args.html.new 2002-10-02 08:52:51.000000000 -0500
@@ -58,7 +58,11 @@
object expects. This list is compared with names of fields from HTML
form data submitted by the client via <code>POST</code> or
<code>GET</code>. Values of fields whose names match the names of callable
-object arguments will be passed as strings.
+object arguments will be passed as strings. Any fields whose names do
+not match the names of callable argument objects will be silently dropped.
+But if the destination callable object has a <code>**kwargs</code> style
+argument, then fields with unmatched names will be passed in the
+<code>**kwargs</code> argument instead.
<P>
If the destination is not callable or is a class, then its string
Re: [mod_python] Documentation patch for kwargs change in publisher.py
Posted by rm...@pobox.com.
On Thu, Oct 03, 2002 at 04:58:01PM -0400, Gregory (Grisha) Trubetskoy wrote:
>
> Thanks, I'll add this in.
>
> BTW, the doc-html stuff automatically generated from .tex files in Doc.
>
[snip my patch]
Ah. Next time I send in a doc patch I'll patch the .tex files, then.
--
Robin Munn
rmunn@pobox.com
Re: [mod_python] Documentation patch for kwargs change in publisher.py
Posted by "Gregory (Grisha) Trubetskoy" <gr...@modpython.org>.
Thanks, I'll add this in.
BTW, the doc-html stuff automatically generated from .tex files in Doc.
On Wed, 2 Oct 2002 rmunn@pobox.com wrote:
> To go along with my earlier patch adding **kwargs functionality to the
> publisher.py dispatcher, here's a documentation patch to keep the docs
> up-to-date.
>
> --
> Robin Munn
> rmunn@pobox.com
>
>
>
> --- doc-html/hand-pub-alg-args.html 2002-09-24 11:59:13.000000000 -0500
> +++ doc-html/hand-pub-alg-args.html.new 2002-10-02 08:52:51.000000000 -0500
> @@ -58,7 +58,11 @@
> object expects. This list is compared with names of fields from HTML
> form data submitted by the client via <code>POST</code> or
> <code>GET</code>. Values of fields whose names match the names of callable
> -object arguments will be passed as strings.
> +object arguments will be passed as strings. Any fields whose names do
> +not match the names of callable argument objects will be silently dropped.
> +But if the destination callable object has a <code>**kwargs</code> style
> +argument, then fields with unmatched names will be passed in the
> +<code>**kwargs</code> argument instead.
>
> <P>
> If the destination is not callable or is a class, then its string
> _______________________________________________
> Mod_python mailing list
> Mod_python@modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>