Re: #cherrypy #tornado #sqlalchemy
vahid peivandy <[email protected]> Fri, 4 Jan 2019 23:00:10 +0330
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <CAHZJq=4J8-L6ww_5JJ5mcf0n97j+Y63kr4jGoAJQuAwJMN_A1g@mail.gmail.com> |
--00000000000085156a057ea6ea6c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I cannot connect mu db on web server tornado or web server cherrypy this is my problem and see this page but not help me https://tornado-sqlalchemy.readthedocs.io/en/latest/ On Fri, Jan 4, 2019 at 10:54 PM Sviatoslav Sydorenko <[email protected]> wrote: > 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 ap= p > 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 <tar= [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 the= y >>> see first? Is there a menu? Is there a search? Which tables do they = need >>> 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 prese= nt >>> 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 >>> and start doing more coding. You can adapt the CGI pages you've alread= y >>> done, 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 >>> 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. >>> >> -- >> 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. >> > > > -- > Cheers, > Sviatoslav. > > -- > 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 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. --00000000000085156a057ea6ea6c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:comic sans ms,sans-serif">I cannot connect mu db on web server tor= nado or web server cherrypy this is my problem and see this page but not he= lp me <br></div><div class=3D"gmail_default" style=3D"font-family:comic san= s ms,sans-serif"><a href=3D"https://tornado-sqlalchemy.readthedocs.io/en/la= test/">https://tornado-sqlalchemy.readthedocs.io/en/latest/</a><br></div></= div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Fri, Jan 4, 20= 19 at 10:54 PM Sviatoslav Sydorenko <<a href=3D"mailto:[email protected]= ua">[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);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">H= i Vahid,<div><br></div><div>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: <a href=3D"https://github.c= om/Lawouach/Twiseless/blob/master/lib/tool/db.py" target=3D"_blank">https:/= /github.com/Lawouach/Twiseless/blob/master/lib/tool/db.py</a></div></div><i= mg src=3D"https://t.sidekickopen76.com/s1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9= gXrN7sKj6v5dpzzVdDPRz2m64_PW3xgp7472TP1pf2mbxc201?si=3D5180645064310784&= ;pi=3Da221339a-f23e-4c6d-cf1e-59b050aac5f5&ti=3Dnull" style=3D"display:= none;" width=3D"1" height=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 pei= vandy <<a href=3D"mailto:[email protected]" target=3D"_blank">tarf= [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 sol= id rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><di= v dir=3D"ltr"><div style=3D"font-family:"comic sans ms",sans-seri= f">I want on the first-page show a simple list page HTML that shows Patient= order by id, name, family name <br></div><div style=3D"font-family:"c= omic sans ms",sans-serif">and when a user clicked to for example=C2=A0= Patient Alex goes to the second page that includes lists of <span class=3D= "gmail-m_-8185316781262791gmail-m_8371773478030908163gmail-tlid-translation= gmail-m_-8185316781262791gmail-m_8371773478030908163gmail-translation"><sp= an title=3D"" class=3D"gmail-m_-8185316781262791gmail-m_8371773478030908163= gmail-">Patient Referral order by id, date and when the user clicked to spe= cial 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"gmai= l_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>> w= rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p= x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> =20 =20 =20 <div bgcolor=3D"#FFFFFF"> <div class=3D"gmail-m_-8185316781262791gmail-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_-8185316781262791gmail-m_8371773478030908163gmail= -m_316193385299837982moz-signature" cols=3D"72">--=20 Tim Roberts, <a class=3D"gmail-m_-8185316781262791gmail-m_83717734780309081= 63gmail-m_316193385299837982moz-txt-link-abbreviated" href=3D"mailto:timr@p= robo.com" target=3D"_blank">[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-m_-8185316781262791gmail_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]" 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]">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 /> --00000000000085156a057ea6ea6c--