Re: #cherrypy #tornado #sqlalchemy
Sviatoslav Sydorenko <[email protected]> Fri, 4 Jan 2019 20:24:21 +0100
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <CAFYONRADk-fNg=4Q8KYOnpSFGLqw5zaNkOYLFo8=pb5+UwYv8A@mail.gmail.com> |
--0000000000002a1f6f057ea6d481 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vahid, I'm not sure where are you stuck at? I have a feeling that you just don't know how to integrate SA with CherryPy. Am I right? If so, here's some app example: https://github.com/Lawouach/Twiseless/blob/master/lib/tool/db.py =D0=BF=D1=82, 4 =D1=81=D1=96=D1=87. 2019 =D0=BE 20:16 vahid peivandy <tarfa= [email protected]> =D0=BF=D0=B8=D1=88=D0=B5: > I want on the first-page show a simple list page HTML that shows Patient > order by id, name, family name > and when a user clicked to for example Patient Alex goes to the second > page that includes lists of Patient Referral order by id, date and when > the user clicked to special date go to the last page that shows pictures = of > for example hand, foot, etc of Alex. > > On Fri, Jan 4, 2019 at 10:27 PM Tim Roberts <[email protected]> wrote: > >> vahid peivandy wrote: >> >> >> I write db but now connect to the web server and this is my problem and >> need help >> >> Well, you take it one step at a time. You will want to sketch out on >> paper what forms you will need. What is the user story? What will they >> see first? Is there a menu? Is there a search? Which tables do they n= eed >> to see? How does the flow go? Where do the buttons go? >> >> After that, you're going to want to sketch out some simple HTML forms, >> just so you can see how they look with data in them. How can you presen= t >> the fields in an attractive and useful way? >> >> After that, I usually do a couple of the pages as CGI scripts behind an >> Apache server somewhere, so I can check out the flow without having to >> worry about a web server. >> >> Once you have that basic outline, then you can choose your web server an= d >> start doing more coding. You can adapt the CGI pages you've already don= e, >> and switch over to whatever template engine is provided. >> >> -- >> Tim Roberts, [email protected] >> Providenza & Boekelheide, Inc. >> >> -- >> You received this message because you are subscribed to the Google Group= s >> "cherrypy-users" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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. >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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. > For more options, visit https://groups.google.com/d/optout. > --=20 Cheers, Sviatoslav. --=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. For more options, visit https://groups.google.com/d/optout. --0000000000002a1f6f057ea6d481 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Hi Vahid,<div><br></div>= <div>I'm not sure where are you stuck at? I have a feeling that you jus= t don't know how to integrate SA with CherryPy. Am I right? If so, here= 's some app example: <a href=3D"https://github.com/Lawouach/Twiseless/b= lob/master/lib/tool/db.py">https://github.com/Lawouach/Twiseless/blob/maste= r/lib/tool/db.py</a></div></div><img src=3D"https://t.sidekickopen76.com/s1= t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dpzzVdDPRz2m64_PW3xgp7472TP1pf= 2mbxc201?si=3D5180645064310784&pi=3Da221339a-f23e-4c6d-cf1e-59b050aac5f= 5&ti=3Dnull" style=3D"display:none!important" height=3D"1" width=3D"1">= </div><br><div class=3D"gmail_quote"><div dir=3D"ltr">=D0=BF=D1=82, 4 =D1= =81=D1=96=D1=87. 2019 =D0=BE 20:16 vahid peivandy <<a href=3D"mailto:tar= [email protected]">[email protected]</a>> =D0=BF=D0=B8=D1=88=D0= =B5:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px= 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D= "ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div style=3D"font-family:"com= ic sans ms",sans-serif">I want on the first-page show a simple list pa= ge HTML that shows Patient order by id, name, family name <br></div><div st= yle=3D"font-family:"comic sans ms",sans-serif">and when a user cl= icked to for example=C2=A0 Patient Alex goes to the second page that includ= es lists of <span class=3D"gmail-m_8371773478030908163gmail-tlid-translatio= n gmail-m_8371773478030908163gmail-translation"><span title=3D"" class=3D"g= mail-m_8371773478030908163gmail-">Patient Referral order by id, date and wh= en the user clicked to special date go to the last page that shows pictures= of for example hand, foot, etc of Alex.</span></span> </div></div></div></= div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Fri, Jan 4, 2019 at = 10:27 PM Tim Roberts <<a href=3D"mailto:[email protected]" target=3D"_blank= ">[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex"> =20 =20 =20 <div bgcolor=3D"#FFFFFF"> <div class=3D"gmail-m_8371773478030908163gmail-m_316193385299837982moz-= cite-prefix">vahid peivandy wrote:<br> </div> <blockquote type=3D"cite"> =20 <div dir=3D"ltr"> <div style=3D"font-family:"comic sans ms",sans-serif"><br= > I write db but now connect to the web server and this is my problem and need help <br> </div> </div> </blockquote> <p>Well, you take it one step at a time.=C2=A0 You will want to sketch out on paper what forms you will need.=C2=A0 What is the user story?= =C2=A0 What will they see first?=C2=A0 Is there a menu?=C2=A0 Is there a sea= rch?=C2=A0 Which tables do they need to see?=C2=A0 How does the flow go?=C2=A0 W= here do the buttons go?<br> </p> <p>After that, you're going to want to sketch out some simple HTML forms, just so you can see how they look with data in them.=C2=A0 How can you present the fields in an attractive and useful way?</p> <p>After that, I usually do a couple of the pages as CGI scripts behind an Apache server somewhere, so I can check out the flow without having to worry about a web server.<br> </p> <p>Once you have that basic outline, then you can choose your web server and start doing more coding.=C2=A0 You can adapt the CGI pages you've already done, and switch over to whatever template engine is provided.<br> </p> <pre class=3D"gmail-m_8371773478030908163gmail-m_316193385299837982moz-= signature" cols=3D"72">--=20 Tim Roberts, <a class=3D"gmail-m_8371773478030908163gmail-m_316193385299837= 982moz-txt-link-abbreviated" href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a> Providenza & Boekelheide, Inc. </pre> </div> <p></p> -- <br> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" 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]" targ= et=3D"_blank">cherrypy-users+unsubscribe-/[email protected]</a>.<br> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com" target=3D"_blank">cherrypy-users-/[email protected]</a>.<br> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs" target=3D"_blank">https://groups.google.com/group/cherrypy-users</a>.<b= r> For more options, visit <a href=3D"https://groups.google.com/d/optout" targ= et=3D"_blank">https://groups.google.com/d/optout</a>.<br> </blockquote></div> <p></p> -- <br> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" 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]" targ= et=3D"_blank">cherrypy-users+unsubscribe-/[email protected]</a>.<br> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com" target=3D"_blank">cherrypy-users-/[email protected]</a>.<br> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs" target=3D"_blank">https://groups.google.com/group/cherrypy-users</a>.<b= r> For more options, visit <a href=3D"https://groups.google.com/d/optout" targ= et=3D"_blank">https://groups.google.com/d/optout</a>.<br> </blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"= class=3D"gmail_signature"><div dir=3D"ltr">Cheers,<div>Sviatoslav.</div></= div></div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" 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 /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> --0000000000002a1f6f057ea6d481--