Re: Bare bones page may have config issues

Jack Eisenbach <[email protected]> Fri, 20 Dec 2019 07:11:43 -0800 (PST)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
------=_Part_189_796819882.1576854703698
Content-Type: multipart/alternative; 
	boundary="----=_Part_190_1678031876.1576854703699"

------=_Part_190_1678031876.1576854703699
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Sviatoslav,
I took a previous project and minimalized it as much as possible and=20
renamed it bb.py for barebones.py.=20
The lquickstart ine near the end of the file is:
cherrypy.quickstart(BB(), '/'. 'bb.config')
The bb.config file contains:

[/]
tools.sessions.on: True
path =3D 'C:\\workspace\\CP'


[/static]
tools.staticdir.on : True
tools.staticdir.root : "C:\\workspace\\CP\\"
tools.staticdir.dir : "/workspace/CP/static"
tools.staticfile.on =3D True
tools.staticfile.filename =3D 'C:\workspace\CP\static\css\style.css'

[/static/css]
tools.staticdir.on : True
tools.staticdir.root : "/workspace/CP/"
tools.staticdir.dir : "workspace/CP/static/css/"


I have looked at other examples and modified the above code numerous times=
=20
with no success.
Do you see anything obviously wrong with the config above?
Thanks,
jack



On Friday, December 20, 2019 at 9:17:09 AM UTC-5, Sviatoslav Sydorenko=20
(@webknjaz) wrote:
>
> Hi Jack,=20
>
> I think it's best to post text directly or use something like a GitHub =
=20
> Gist or a regular repository on GitHub.=20
> It's hard to reason about things that aren't immediately visible in=20
> the mailing list archive.=20
> For example, one may want to add a comment to your code. It's=20
> impossible with an attachment but it's=20
> easy to do if there's some snippet in the previous email that can be=20
> quoted.=20
>
> Here's an example:=20
> > def hello(world):=20
> >     print(word)=20
>
> The comment *here* would be that there's a typo in this line.=20
>
> > return world=20
>
>
> Also, if the source is really big, it's better to come up with a=20
> minimal reproducer that would have way=20
> fewer lines and rip off all the unrelated parts to help everyone focus=20
> on important things.=20
>
> =D0=BF=D1=82, 20 =D0=B3=D1=80=D1=83=D0=B4. 2019 =D0=BE 15:08 Jack Eisenba=
ch <[email protected]=20
> <javascript:>> =D0=BF=D0=B8=D1=88=D0=B5:=20
> >=20
> > Hi,=20
> > I  seem to be having issues when configuring Cherrypy. I created a bare=
=20
> bones site that should display a jpeg from the static/images folder. It=
=20
> should also format the page from details provided from the=20
> static/css/style.css page. The problems I have  are: the image is not=20
> displayed and the background is not light Blue in color. I have attached=
=20
> the 4 files. Thanks in advance for all assistance. i've been stuck for=20
> weeks trying to resolve these issues. I have not been able to find a bare=
=20
> bones example using Cherrypy to do the above.=20
> > Kind regards, Please disregard my previous posts with similar question.=
=20
> I had some typos in them.=20
> > Jack=20
> >=20
> > --=20
> > You received this message because you are subscribed to the Google=20
> Groups "cherrypy-users" group.=20
> > To unsubscribe from this group and stop receiving emails from it, send=
=20
> an email to cherryp...-/[email protected] <javascript:>.=20
> > To view this discussion on the web visit=20
> https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-41af-bf87-=
206a9cfe4ae3%40googlegroups.com.=20
>
>
>
>
> --=20
> Cheers,=20
> Sviatoslav.=20
>
> ---=20
> https://useplaintext.email/=20
> ()  ascii ribbon campaign - against html e-mail=20
> /\  www.asciiribbon.org   - against proprietary attachments=20
> ---=20
>

--=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 view this discussion on the web visit https://groups.google.com/d/msgid/=
cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegroups.com.

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

<div dir=3D"ltr">Hi Sviatoslav,<div>I took a previous project and minimaliz=
ed it as much as possible and renamed it bb.py for barebones.py.=C2=A0</div=
><div>The lquickstart ine near the end of the file is:</div><div>cherrypy.q=
uickstart(BB(), &#39;/&#39;. &#39;bb.config&#39;)</div><div>The bb.config f=
ile contains:</div><div><br></div><div><div>[/]</div><div>tools.sessions.on=
: True</div><div>path =3D &#39;C:\\workspace\\CP&#39;</div><div><br></div><=
div><br></div><div>[/static]</div><div>tools.staticdir.on : True</div><div>=
tools.staticdir.root : &quot;C:\\workspace\\CP\\&quot;</div><div>tools.stat=
icdir.dir : &quot;/workspace/CP/static&quot;</div><div>tools.staticfile.on =
=3D True</div><div>tools.staticfile.filename =3D &#39;C:\workspace\CP\stati=
c\css\style.css&#39;</div><div><br></div><div>[/static/css]</div><div>tools=
.staticdir.on : True</div><div>tools.staticdir.root : &quot;/workspace/CP/&=
quot;</div><div>tools.staticdir.dir : &quot;workspace/CP/static/css/&quot;<=
/div></div><div><br></div><div><br></div><div>I have looked at other exampl=
es and modified the above code numerous times with no success.</div><div>Do=
 you see anything obviously wrong with the config above?</div><div>Thanks,<=
/div><div>jack</div><div><br></div><div><br></div><div><br>On Friday, Decem=
ber 20, 2019 at 9:17:09 AM UTC-5, Sviatoslav Sydorenko (@webknjaz) wrote:<b=
lockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;borde=
r-left: 1px #ccc solid;padding-left: 1ex;">Hi Jack,
<br>
<br>I think it&#39;s best to post text directly or use something like a Git=
Hub=C2=A0=C2=A0<br>Gist or a regular repository on GitHub.
<br>It&#39;s hard to reason about things that aren&#39;t immediately visibl=
e in
<br>the mailing list archive.
<br>For example, one may want to add a comment to your code. It&#39;s
<br>impossible with an attachment but it&#39;s
<br>easy to do if there&#39;s some snippet in the previous email that can b=
e quoted.
<br>
<br>Here&#39;s an example:
<br>&gt; def hello(world):
<br>&gt; =C2=A0 =C2=A0 print(word)
<br>
<br>The comment *here* would be that there&#39;s a typo in this line.
<br>
<br>&gt; return world
<br>
<br>
<br>Also, if the source is really big, it&#39;s better to come up with a
<br>minimal reproducer that would have way
<br>fewer lines and rip off all the unrelated parts to help everyone focus
<br>on important things.
<br>
<br>=D0=BF=D1=82, 20 =D0=B3=D1=80=D1=83=D0=B4. 2019 =D0=BE 15:08 Jack Eisen=
bach &lt;<a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D=
"tKOFVtvGAAAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;javascript:=
&#39;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;return tru=
e;">[email protected]</a>&gt; =D0=BF=D0=B8=D1=88=D0=B5:
<br>&gt;
<br>&gt; Hi,
<br>&gt; I =C2=A0seem to be having issues when configuring Cherrypy. I crea=
ted a bare bones site that should display a jpeg from the static/images fol=
der. It should also format the page from details provided from the static/c=
ss/style.css page. The problems I have =C2=A0are: the image is not displaye=
d and the background is not light Blue in color. I have attached the 4 file=
s. Thanks in advance for all assistance. i&#39;ve been stuck for weeks tryi=
ng to resolve these issues. I have not been able to find a bare bones examp=
le using Cherrypy to do the above.
<br>&gt; Kind regards, Please disregard my previous posts with similar ques=
tion. I had some typos in them.
<br>&gt; Jack
<br>&gt;
<br>&gt; --
<br>&gt; You received this message because you are subscribed to the Google=
 Groups &quot;cherrypy-users&quot; group.
<br>&gt; To unsubscribe from this group and stop receiving emails from it, =
send an email to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-m=
ailto=3D"tKOFVtvGAAAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;jav=
ascript:&#39;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;re=
turn true;">cherryp...@<wbr>googlegroups.com</a>.
<br>&gt; To view this discussion on the web visit <a href=3D"https://groups=
.google.com/d/msgid/cherrypy-users/76fec327-d637-41af-bf87-206a9cfe4ae3%40g=
ooglegroups.com" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.hre=
f=3D&#39;https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-41a=
f-bf87-206a9cfe4ae3%40googlegroups.com&#39;;return true;" onclick=3D"this.h=
ref=3D&#39;https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-4=
1af-bf87-206a9cfe4ae3%40googlegroups.com&#39;;return true;">https://groups.=
google.com/d/<wbr>msgid/cherrypy-users/76fec327-<wbr>d637-41af-bf87-206a9cf=
e4ae3%<wbr>40googlegroups.com</a>.
<br>
<br>
<br>
<br>--=20
<br>Cheers,
<br>Sviatoslav.
<br>
<br>---
<br><a href=3D"https://useplaintext.email/" target=3D"_blank" rel=3D"nofoll=
ow" onmousedown=3D"this.href=3D&#39;https://www.google.com/url?q\x3dhttps%3=
A%2F%2Fuseplaintext.email%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGe-4Tx=
cmPpCpo9Wm1Wt7wDb1bJCw&#39;;return true;" onclick=3D"this.href=3D&#39;https=
://www.google.com/url?q\x3dhttps%3A%2F%2Fuseplaintext.email%2F\x26sa\x3dD\x=
26sntz\x3d1\x26usg\x3dAFQjCNGe-4TxcmPpCpo9Wm1Wt7wDb1bJCw&#39;;return true;"=
>https://useplaintext.email/</a>
<br>() =C2=A0ascii ribbon campaign - against html e-mail
<br>/\ =C2=A0<a href=3D"http://www.asciiribbon.org" target=3D"_blank" rel=
=3D"nofollow" onmousedown=3D"this.href=3D&#39;http://www.google.com/url?q\x=
3dhttp%3A%2F%2Fwww.asciiribbon.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCN=
EWqNaVK4lg63geSbSBYdFWTzTrMA&#39;;return true;" onclick=3D"this.href=3D&#39=
;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.asciiribbon.org\x26sa\x3dD=
\x26sntz\x3d1\x26usg\x3dAFQjCNEWqNaVK4lg63geSbSBYdFWTzTrMA&#39;;return true=
;">www.asciiribbon.org</a> =C2=A0 - against proprietary attachments
<br>---
<br></blockquote></div></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 view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegrou=
ps.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/=
msgid/cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegroups.co=
m</a>.<br />

------=_Part_190_1678031876.1576854703699--

------=_Part_189_796819882.1576854703698--