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

Jibun no Kage <[email protected]> Tue, 14 May 2019 07:42:43 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
------=_Part_2519_452692332.1557844963431
Content-Type: multipart/alternative; 
	boundary="----=_Part_2520_1771606407.1557844963431"

------=_Part_2520_1771606407.1557844963431
Content-Type: text/plain; charset="UTF-8"

Thanks for the response.  I would point out that PHP, Java do much more 
than just generate simple HTML indirectly, the final response maybe just 
HTML but the API calls, methods, etc. they natively support, solve 
programmatic scenarios that would require extensive coding/scripting in raw 
HTML, they inject in the response, and thus the client side interprets 
resulting HTML.  Wrappers or whatever you may want to call it.  This ease 
of implementation is why PHP and Java are so popular.  I still am 
requesting someone to post an example of a dropdownlist in a CherryPy 
project, since I found none thus far... even if it is just a HTML 
response.  Might be a nice thing to add to the tutorial for CherryPy.  

The various examples I did find all use various python modules to get the 
job done, which is something I want to avoid if possible.  Dependence of 
3rd party modules is somewhat discouraged in my environment, given the 
risks in using same.  The use of threading is controlled as well by our 
design protocol, i.e. avoid using multi threading to reduce complexity.  
That is in reference to my atomic reference, I want to implement the 
solution avoiding 3rd party modules if possible and avoid multi thread 
creation if possible.

On Monday, May 13, 2019 at 7:33:05 PM UTC-7, Jibun no Kage wrote:
>
> How to implement a dropdownlist in CherryPy where selected item is 
> returned as argument appended to current URL?
>
> For example, say I have a form select:
>
> 1-Test
> 2-Debug
> 3-Run
> 4-Report
>
> Current URL is /number.
>
> And when I select 4, URL via POST (or GET?) is now 
> /number?select=4-Report, or something to the same effect?
>
> Would like to keep the solution native python if possible.
>

-- 
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 email 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/3b35a36f-cbc5-40b3-b1bc-28fbfbb8aa50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

------=_Part_2520_1771606407.1557844963431
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks for the response.=C2=A0 I would point out that=
 PHP, Java do much more than just generate simple HTML indirectly, the fina=
l response maybe just HTML but the API calls, methods, etc. they natively s=
upport, solve programmatic scenarios that would require extensive coding/sc=
ripting in raw HTML, they inject in the response, and thus the client side =
interprets resulting HTML.=C2=A0 Wrappers or whatever you may want to call =
it.=C2=A0 This ease of implementation is why PHP and Java are so popular.=
=C2=A0 I still am requesting someone to post an example of a dropdownlist i=
n a CherryPy project, since I found none thus far... even if it is just a H=
TML response.=C2=A0 Might be a nice thing to add to the tutorial for Cherry=
Py.=C2=A0 <br></div><div><br></div><div>The various examples I did find all=
 use various python modules to get the job done, which is something I want =
to avoid if possible.=C2=A0 Dependence of 3rd party modules is somewhat dis=
couraged in my environment, given the risks in using same.=C2=A0 The use of=
 threading is controlled as well by our design protocol, i.e. avoid using m=
ulti threading to reduce complexity.=C2=A0 That is in reference to my atomi=
c reference, I want to implement the solution avoiding 3rd party modules if=
 possible and avoid multi thread creation if possible.<br></div><div><br></=
div>On Monday, May 13, 2019 at 7:33:05 PM UTC-7, Jibun no Kage wrote:<block=
quote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-le=
ft: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">How to implement a =
dropdownlist in CherryPy where selected item is returned as argument append=
ed to current URL?<br><div><br></div><div>For example, say I have a form se=
lect:</div><div><br></div><div>1-Test</div><div>2-Debug</div><div>3-Run</di=
v><div>4-Report</div><div><br></div><div>Current URL is /number.</div><div>=
<br></div><div>And when I select 4, URL via POST (or GET?) is now /number?s=
elect=3D4-Report, or something to the same effect?</div><div><br></div><div=
>Would like to keep the solution native python if possible.</div></div></bl=
ockquote></div>

<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/3b35a36f-cbc5-40b3-b1bc-28fbfbb8aa50%40googlegrou=
ps.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/=
msgid/cherrypy-users/3b35a36f-cbc5-40b3-b1bc-28fbfbb8aa50%40googlegroups.co=
m</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_2520_1771606407.1557844963431--

------=_Part_2519_452692332.1557844963431--