Hi,<br>
<br>
I have been using twisted quite a bit these last 6 months for a networked application i'm<br>
working on. Recently, i've decided to port the web part of the app from spyce to nevow.<br>
However, i have encountered a problem with using css file. My css file has references to<br>
image files like below:<br>
<br>
<i>...<br>body {<br> background: #EEE url(img/bg.gif);<br> color: #444;<br> font: normal 62.5% "Lucida Sans Unicode",sans-serif;<br> margin: 0;<br>}<br>...</i><br>
<br>
The following is a test file that loads an external xml file which references a css file:<br>
<br>
<i>class TestPage(rend.Page):<br> addSlash = True<br> child_images = static.File('img')<br> children = {'default.css': static.File('default.css')}<br> docFactory = loaders.xmlfile('webtest.html')<br>
<br>site = appserver.NevowSite(TestPage())<br>reactor.listenTCP(8080, site)<br>reactor.run()</i><br>
<br>
The problem is that the images referenced inside the css file is not being loaded when<br>
the page is rendered. Can someone tell me how to fix this? This is the first time i've used <br>
nevow or even twisted.web.<br>
<br>
Thank you very much.<br>
<br>
Regards,<br><font color="#888888">
<font color="#888888">Eric</font>
</font>