Re: How to implement a dropdownlist in CherryPy where selected item is returned as argument appended to current URL?

Tim Roberts <[email protected]> Mon, 13 May 2019 22:55:35 -0700
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
--Apple-Mail=_65C76B2E-6C6D-48E3-813D-16DECBF5E504
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"

On May 13, 2019, at 10:19 PM, Jibun no Kage <[email protected]> wrote:
>=20
> No, its both.  Implementation of a dropdownlist in each respective enviro=
nment is slightly different, be it PHP, Java, etc.  Given that CherryPy has=
 a unique dispatch method, that imposes specific requirements, it is not ob=
vious how such can be done.=20

But that's just not so.  PHP and Cherrypy both produce a plain, ordinary HT=
ML form that gets sent to the browser.  At that point, that request is fini=
shed.  The browser handles the HTML form submission by sending back a new r=
equest, which gets handled by a new handler.  Neither PHP nor CherryPy actu=
ally do anything to "handle" the dropdown list, and the server code is not =
active while the browser is presenting the form.

> Hopefully python atomic as well, if such is possible.

I can't tell what you are imagining here, but the "atomic" concept doesn't =
apply.  The request that sends the HTML with the form is a completely separ=
ate request from the one that handles the returned URL.  The display of the=
 dropdown box itself is done by the browser on a completely different compu=
ter; CherryPy is not involved in that operation in any way.
=E2=80=94=20
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

--=20
You received this message because you are subscribed to the Google Groups "=
cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/=
cherrypy-users/E2C3068C-1468-4BFD-80EB-73FDC982E7EF%40probo.com.
For more options, visit https://groups.google.com/d/optout.

--Apple-Mail=_65C76B2E-6C6D-48E3-813D-16DECBF5E504
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; line-break: after-white-space;" class=3D"">On May 13, 2019, at 10:19 =
PM, Jibun no Kage &lt;<a href=3D"mailto:[email protected]" class=3D"">j=
[email protected]</a>&gt; wrote:<br class=3D""><div><blockquote type=3D"=
cite" class=3D""><br class=3D"Apple-interchange-newline"><div class=3D""><d=
iv dir=3D"ltr" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight=
: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text=
-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stro=
ke-width: 0px; text-decoration: none;" class=3D"">No, its both.&nbsp; Imple=
mentation of a dropdownlist in each respective environment is slightly diff=
erent, be it PHP, Java, etc.&nbsp; Given that CherryPy has a unique dispatc=
h method, that imposes specific requirements, it is not obvious how such ca=
n be done.&nbsp;</div></div></blockquote><div><br class=3D""></div><div>But=
 that's just not so. &nbsp;PHP and Cherrypy both produce a plain, ordinary =
HTML form that gets sent to the browser. &nbsp;At that point, that request =
is finished. &nbsp;The browser handles the HTML form submission by sending =
back a new request, which gets handled by a new handler. &nbsp;Neither PHP =
nor CherryPy actually do anything to "handle" the dropdown list, and the se=
rver code is not active while the browser is presenting the form.</div><div=
><br class=3D""></div><blockquote type=3D"cite" class=3D""><div class=3D"">=
<div dir=3D"ltr" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica=
; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weig=
ht: normal; letter-spacing: normal; text-align: start; text-indent: 0px; te=
xt-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-st=
roke-width: 0px; text-decoration: none;" class=3D"">Hopefully python atomic=
 as well, if such is possible.</div></div></blockquote><div><br class=3D"">=
</div><div>I can't tell what you are imagining here, but the "atomic" conce=
pt doesn't apply. &nbsp;The request that sends the HTML with the form is a =
completely separate request from the one that handles the returned URL. &nb=
sp;The display of the dropdown box itself is done by the browser on a compl=
etely different computer; CherryPy is not involved in that operation in any=
 way.</div></div><div class=3D"">
=E2=80=94&nbsp;<br class=3D"">Tim Roberts, <a href=3D"mailto:[email protected]=
" class=3D"">[email protected]</a><br class=3D"">Providenza &amp; Boekelheide,=
 Inc.
</div>
<br class=3D""></body></html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;cherrypy-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher=
rypy-users+unsubscribe-/[email protected]</a>.<br />
To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl=
egroups.com">cherrypy-users-/[email protected]</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use=
rs">https://groups.google.com/group/cherrypy-users</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/cherrypy-users/E2C3068C-1468-4BFD-80EB-73FDC982E7EF%40probo.com?=
utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/c=
herrypy-users/E2C3068C-1468-4BFD-80EB-73FDC982E7EF%40probo.com</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

--Apple-Mail=_65C76B2E-6C6D-48E3-813D-16DECBF5E504--