<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.cherrypy">
    <title>gmane.comp.python.cherrypy</title>
    <link>http://blog.gmane.org/gmane.comp.python.cherrypy</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7581"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7580"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7572"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7571"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7570"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7568"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7563"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7560"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7557"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7556"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7551"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7549"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7548"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7545"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7542"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7539"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7534"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7533"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7532"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cherrypy/7531"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7581">
    <title>upload json file and process it</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7581</link>
    <description>&lt;pre&gt;Hi guys,
I'm starting a new project, and I'm using cherrypy for a backend.

One thing though, I'm trying to do an upload of a json file, and I'd like 
to process this json file 'on the fly' without needing to access the 
physical file on disk. ¿is this possible?

Thanks!!

&lt;/pre&gt;</description>
    <dc:creator>saptah</dc:creator>
    <dc:date>2012-05-19T15:53:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7580">
    <title>Better way than this for client-side SSL?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7580</link>
    <description>&lt;pre&gt;I've made a ServerAdapter that saves client-side credentials (if any) to 
the WSGI environment, but was wondering if there's a better way to set up 
the default server to use it.

Here's the code:

import cherrypy.wsgiserver
from cherrypy.wsgiserver import ssl_builtin

class ClientSSLAdapter(ssl_builtin.BuiltinSSLAdapter):
    def get_environ(self, sock):
        environ = ssl_builtin.BuiltinSSLAdapter.get_environ(self, sock)
        environ['SSL_PEER_CERTIFICATE'] = sock.getpeercert()
        return environ

cherrypy.wsgiserver.wsgiserver2.ssl_adapters['client'] = 'ClientSSLAdapter'
cherrypy.config['server.ssl_module'] = 'client'

Those last two lines are the only way I could find to have the default 
server pick up my module. The documentation says 'Just set 
server.ssl_adapter to an SSLAdapter instance' but cherrypy.server has no 
ssl_adapter attribute. Is there a more canonical way to do this without 
reaching into the wsgiserver and fiddling with its adapters? Just curious.
Simon.


&lt;/pre&gt;</description>
    <dc:creator>Simon Haines</dc:creator>
    <dc:date>2012-05-17T03:03:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7572">
    <title>Web-framework+db with the widest scalability?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7572</link>
    <description>&lt;pre&gt;Disclosure: I have posted this question on stackoverflow&amp;lt;http://stackoverflow.com/q/10562165&amp;gt;and 
comp.lang.python&amp;lt;https://groups.google.com/forum/#%21topic/comp.lang.python/gSAw5mLkUos&amp;gt;
.

 I am building a project requiring high performance and scalability, 
entailing:

   - Role-based authentication&amp;lt;http://en.wikipedia.org/wiki/Role-based_access_control&amp;gt;with 
   API-key&amp;lt;http://en.wikipedia.org/wiki/Application_programming_interface_key&amp;gt;licensing to access data of specific users
   - API &amp;lt;http://en.wikipedia.org/wiki/Application_programming_interface&amp;gt;exposed with 
   REST &amp;lt;http://en.wikipedia.org/wiki/REST&amp;gt; (XML&amp;lt;http://en.wikipedia.org/wiki/XML&amp;gt;, 
   JSON &amp;lt;http://en.wikipedia.org/wiki/JSON&amp;gt;), XMLRPC&amp;lt;http://en.wikipedia.org/wiki/XMLRPC&amp;gt;, 
   JSONRPC &amp;lt;http://en.wikipedia.org/wiki/JSONRPC&amp;gt; and SOAP&amp;lt;http://en.wikipedia.org/wiki/SOAP&amp;gt;
   - "Easily" configurable getters and setters&amp;lt;http://en.wikipedia.org/wiki/Mutator_method&amp;gt;to create APIs accessing the same data but with input/output in different 
   schemas &amp;lt;http://en.wikipedia.org/wiki/Database_schema&amp;gt;

A conservative estimate of the number of tables—often whose queries require 
joins—is: 20.

Which database type—e.g.: NoSQL &amp;lt;http://en.wikipedia.org/wiki/NoSQL&amp;gt; or DBMS&amp;lt;http://en.wikipedia.org/wiki/Database_management_system&amp;gt;
—key-value data store &amp;lt;http://en.wikipedia.org/wiki/Key-value_data_store&amp;gt;or object-relational 
database &amp;lt;http://en.wikipedia.org/wiki/Object-relational_database&amp;gt;—e.g.: 
Redis &amp;lt;http://en.wikipedia.org/wiki/Redis&amp;gt; or PostgreSQL&amp;lt;http://en.wikipedia.org/wiki/PostgreSQL&amp;gt;—and 
web-framework &amp;lt;http://en.wikipedia.org/wiki/Web_application_framework&amp;gt;—e.g. 
Django &amp;lt;http://en.wikipedia.org/wiki/Django_%28web_framework%29&amp;gt;, Web2Py&amp;lt;http://www.web2py.com/&amp;gt;, 
Tornado &amp;lt;http://www.tornadoweb.org/&amp;gt;, CherryPy &amp;lt;http://www.cherrypy.org/&amp;gt;or 
Flask &amp;lt;http://flask.pocoo.org/&amp;gt;—would you recommend?
 Thanks for all suggestions

&lt;/pre&gt;</description>
    <dc:creator>Alec Taylor</dc:creator>
    <dc:date>2012-05-12T08:55:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7571">
    <title>doubts on cherrypy</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7571</link>
    <description>&lt;pre&gt;Hi...all,
   I am using cherrypy more than 2 months, now i am having strange
doubt, is it necessary we should use def index(), for our index
page....(exact name index(), we can't use other names?)?
                                     One more is i want to call
directly a html file, that is navigation from one html file to another
html file, is it possible?(i want to call a static html file, from my
another html file) instead of writing a method to call a static
file...
                        please help me to find out....Thanks in
advance.....

&lt;/pre&gt;</description>
    <dc:creator>ram_ganeshu</dc:creator>
    <dc:date>2012-05-14T08:05:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7570">
    <title>Latching signal handling?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7570</link>
    <description>&lt;pre&gt;Some of my modules used as CherryPy applications spin up their own threads 
(via threading.Timer) for background processing. However, I can't find a 
way to latch cherrypy.engine.signal_handler or 
cherrypy.engine.console_control_handler to properly clean things up when 
Ctrl-C is pressed on a Linux/Windows console.

My server startup code looks like this (Python 2.7.1, CherryPy 3.1.2):

# Register of background jobs
jobs = []
def handle_terminate(event):
  for job in jobs:
    print('Terminating %s' % job.name)
    job.stop()

if hasattr(engine, 'signal_handler'):
  engine.signal_handler.set_handler('SIGTERM', handle_terminate)
  engine.signal_handler.subscribe()
if hasattr(engine, 'console_control_handler'):
  # Best guess as there is no documentation for console_control_handler
  engine.console_control_handler.set_handler('SIGTERM', handle_terminate)
  engine.console_control_handler.subscribe()

Obviously I'd like to register a listener for the Ctrl-C signal, have the 
listener clean up the background jobs, and then chain the default 
handler. Without this, the server never terminates waiting for other 
threads to finish. Is this possible?
Thanks, Simon.


&lt;/pre&gt;</description>
    <dc:creator>Simon Haines</dc:creator>
    <dc:date>2012-05-14T01:45:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7568">
    <title>link data</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7568</link>
    <description>&lt;pre&gt;Hello,

How does one get and post data in cherrypy? for example, I have a link
link.html?user=foo  now in link.html how can I handle user=foo?

An example would be much appreciated.

&lt;/pre&gt;</description>
    <dc:creator>Rita Morgan</dc:creator>
    <dc:date>2012-05-11T12:08:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7563">
    <title>Using simpledb with boto</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7563</link>
    <description>&lt;pre&gt;Anyone using Amazon's SimpleDB with boto in CherryPy?

I have to connect then get a domain:

import boto

sdb = boto.connect_sdb(...)
dom = sdb.get_domain('test_users')

Then in my page handlers I can look for a user 'shooter' with:

user2 = dom.get_item('shooter')
if user2 == None:
  print "no user shooter"


But I'm not sure where to make the connect and get_domain calls and
where to save the domain object. Can I just do:

root.py:

import boto
sdb = boto.connect_sdb(...)
dom = sdb.get_domain('test_users')

class Root:
    &amp;lt; at &amp;gt;cherrypy.expose
    def page(self, username):
        user = dom.get_item(username)
        if user != None:
            ...




&lt;/pre&gt;</description>
    <dc:creator>Mark</dc:creator>
    <dc:date>2012-05-03T15:35:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7560">
    <title>Cheroot</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7560</link>
    <description>&lt;pre&gt;Hi,

I have been a CP user for a few years now and was wondering where does cheroot fit in the cherrypy ecosystem?

Cheers,

EuGeNe

&lt;/pre&gt;</description>
    <dc:creator>eugene.vandenbulke-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-05-01T13:10:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7557">
    <title>Newbie IOError Port not free</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7557</link>
    <description>&lt;pre&gt;Hi!

I'm new to cherrypy and web frameworks in general. I wanted to try out a 
simply HelloWorld example but I'm always getting this Error:

ChannelFailures: IOError("Port 8080 not free on '127.0.0.1'",)

I tried things which I found in Internet like changing the ports but I 
didn't work.

Any suggestions?

Thanks in advance!
Stefanie

&lt;/pre&gt;</description>
    <dc:creator>Stefanie Lück</dc:creator>
    <dc:date>2012-04-30T12:46:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7556">
    <title>Europython 2012 - Early Bird will end in 3 days!</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7556</link>
    <description>&lt;pre&gt;Hi All,
the end of Early Bird is on May 2nd, 23:59:59 CEST. We'd like to ask
to you to forward this post to anyone that you feel may be interested.

We have an amazing lineup of tutorials and talks. We have some
excellent keynote speakers and Guido will be with us!
[https://ep2012.europython.eu/p3/whos-coming?speaker=on#guido-van-
rossum]

If you plan to attend, you could save quite a bit on registration
fees ... but remember that early bird registration ends in 3 days!

Things to Remember:
- House your server: We will be running an Intranet at EuroPython, to
let sponsors, startups, open-source projects and speakers showcase
their products directly within our network.
- Training: You can book the trainings you want to attend, directly
from the schedule (click on the training, and then click on the "Book"
button).
- Sprints: Wonderful hacking sessions during the weekend, learn from
expert Python developers, and contribute to the Python ecosystem!
- Probably we've already discussed about the fact that Guido Van
Rossum will be at Europython in Florence :)

---&amp;gt; Register Now! - https://ep2012.europython.eu/p3/cart/

Regards,

&lt;/pre&gt;</description>
    <dc:creator>Palla</dc:creator>
    <dc:date>2012-04-30T09:17:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7551">
    <title>having issue with cherrypy with mako templates and ASCII chars greater than 127</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7551</link>
    <description>&lt;pre&gt;Hi,
I have had a cherrypy app in production for over a year and recently I have
been getting errors when someone uploads a file
with a name that contains extended ascii chars like the EM Dash etc

What happens is this error is returned when the app tries to display a grid
with the file names:

Invalid Request!
500 Internal Server Error

The server encountered an unexpected condition which prevented it from
fulfilling the request.



cherrypy version = 3.2.0

I have # -*- coding: utf-8 -*-
at the top of my code.

Is there a way to prevent this error when a file name being display has one
of these odd chars in it?

&lt;/pre&gt;</description>
    <dc:creator>Tony Caduto</dc:creator>
    <dc:date>2012-04-27T20:26:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7549">
    <title>404 error, unable to load css styles and img src!</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7549</link>
    <description>&lt;pre&gt;Hi!

I'm in my first real experience with python web development. I'm
developing a third part web application with  cheetah and cherrypy.
I use cheetah Template class for templating and it works find. But
when it define my color and html attribute in a css style file, and
use the &amp;lt;link&amp;gt; balise to link my css styles, it doesn't work.
In the other hand the server does not serve image for the web page,
defined in the &amp;lt;img sr=&amp;gt; balise
Thus the page is display without themes and color.

And in the console i get 404 error from the server for these
resources.

I don't know if the error is from cheetah but i think it could be from
cherrypy since i have a 404 error, manning that the resource is not
located by the server. Even when i put the full path of my css files
and images, the same thing happen

I use precompiled chestah template Below are my linux and python
configurations, and errors got from the console :

System used :  Debian squeeze
Python version : 2.6
Cherrypy version : 3.2.2

Css file:
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;herrpy
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;herrpy
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
height: 250px;
width: 98%;herrpy
border:0;
//border: 1px dashed orange;
}

div.main_center {
padding: 10px;
position: absolute;
top: 100px;
left: 250px;
height: 500px;
width: 500px;
border: 1px dashed orange;
}

div.right {
padding: 10px;
position: absolute;
right: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

cherrypydiv.footer {
//padding: 10px;
position: absolute;
//right: 15px;
top: 660px;
height: 50px;
width: 98%;
//margin: 20px;
//padding: 10px;
border:0;
//border: 1px dashed orange;
}


html source code compilied as LoginTemplate class in my cherrypy py
file:
&amp;lt;!--##doc-module: Login page template, use to generate Login class
source  code
##Made by Eugene NGONTANG--&amp;gt;
&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Login Page&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" /&amp;gt;
&amp;lt;link rel="stylesheet" href="styles/my_style.css" type="text/css"
media="screen"/&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div class='login_header'&amp;gt;
&amp;lt;h2&amp;gt;Login to Eugene System&amp;lt;/h2&amp;gt;
&amp;lt;br/&amp;gt;
&amp;lt;table width=100%&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td style="text-align: center; vertical-align: middle;"&amp;gt;
&amp;lt;img src="images/logo.png" height="100" style='align:center'&amp;gt; &amp;lt;/img&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;!--img src="images/logo.png" height="100" style='align:center'--&amp;gt;
&amp;lt;!--hr class='login'--&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='login_center'&amp;gt;
&amp;lt;form method="POST" action="HomeTemplate"&amp;gt;
  &amp;lt;input type="text" name="username" size="25" /&amp;gt;&amp;lt;b&amp;gt; UserName&amp;lt;/b&amp;gt;&amp;lt;br/
  &amp;lt;input type="password" name="password" size="25" /&amp;gt;&amp;lt;b&amp;gt; Password&amp;lt;/
b&amp;gt;&amp;lt;br/&amp;gt;
  &amp;lt;input type="checkbox" name="remember" value="Remember me"/&amp;gt;
Remember me
        &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;

  &amp;lt;table top=20px width=80% align='center'&amp;gt;
        &amp;lt;tr&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:left'&amp;gt;
        &amp;lt;a href="RegisterTemplate"&amp;gt;Register new account&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:right'&amp;gt;
                   &amp;lt;b&amp;gt;&amp;lt;input type="submit" value="Login"  size='15'
name='login'/&amp;gt;&amp;lt;/b&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='footer'&amp;gt;
&amp;lt;hr class='author'&amp;gt;
 Powered by &amp;lt;a href="http://www.mysite.com"&amp;gt;Koala INC&amp;lt;/a&amp;gt; &amp;amp;copy;
2011-2012 Eug&amp;amp;egrave;ne NGONTANG
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

My py source code; where my index fonction is defined and the template
class is used:
#! /usr/bin/python
import cherrypy
from LoginTemplate import LoginTemplate

class LoginPage(object):
        "Login Page Clas"
        def __init__(self):
                self.tmpl = LoginTemplate()
                self.tmpl.title = "Login Page"
                self.tmpl.motd = "Login to Eugene System"
                self.tmpl.logo = "images/logo.png"

        def index(self):
                return self.tmpl.respond()
        index.exposed = True

cherrypy.config.update({'server.socket_host': '0.0.0.0',
                        'server.socket_port': 8080,
                       })
cherrypy.quickstart(LoginPage())

#cherrypy.tree.mount(login, "/"
#cherrypy.engine.start()

In principle, I wanted to use variables title, motd and logo in my
tmpl file, but i used directly values in a html file for testing

Finally error got from console when running the server :
papi&amp;lt; at &amp;gt;koalab:~/projets/my_project/src/admin$ ./Admin.py
[18/Apr/2012:12:14:01] ENGINE Listening for SIGHUP.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGTERM.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGUSR1.
[18/Apr/2012:12:14:01] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.

[18/Apr/2012:12:14:01] ENGINE Started monitor thread
'_TimeoutMonitor'.
[18/Apr/2012:12:14:01] ENGINE Started monitor thread 'Autoreloader'.
[18/Apr/2012:12:14:01] ENGINE Serving on 0.0.0.0:8080
[18/Apr/2012:12:14:01] ENGINE Bus STARTED
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/log.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:1Hi!

I'm in my first real experience with python web development. I'm
developing a third part web application with  cheetah and cherrypy.
I use cheetah Template class for templating and it works find. But
when it define my color and html attribute in a css style file, and
use the &amp;lt;link&amp;gt; balise to link my css styles, it doesn't work.
In the other hand the server does not serve image for the web page,
defined in the &amp;lt;img sr=&amp;gt; balise
Thus the page is display without themes and color.

And in the console i get 404 error from the server for these
resources.

I don't know if the error is from cheetah but i think it could be from
cherrypy since i have a 404 error, manning that the resource is not
located by the server. Even when i put the full path of my css files
and images, the same thing happen

I use precompiled chestah template Below are my linux and python
configurations, and errors got from the console :

System used :  Debian squeeze
Python version : 2.6
Cherrypy version : 3.2.2

Css file:
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;herrpy
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;herrpy
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
height: 250px;
width: 98%;herrpy
border:0;
//border: 1px dashed orange;
}

div.main_center {
padding: 10px;
position: absolute;
top: 100px;
left: 250px;
height: 500px;
width: 500px;
border: 1px dashed orange;
}

div.right {
padding: 10px;
position: absolute;
right: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

cherrypydiv.footer {
//padding: 10px;
position: absolute;
//right: 15px;
top: 660px;
height: 50px;
width: 98%;
//margin: 20px;
//padding: 10px;
border:0;
//border: 1px dashed orange;
}


html source code compilied as LoginTemplate class in my cherrypy py
file:
&amp;lt;!--##doc-module:Login page template, use to generate Login class
source  code
##Made by Eugene NGONTANG--&amp;gt;
&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Login Page&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" /&amp;gt;
&amp;lt;link rel="stylesheet" href="styles/my_style.css" type="text/css"
media="screen"/&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div class='login_header'&amp;gt;
&amp;lt;h2&amp;gt;Login to Eugene System&amp;lt;/h2&amp;gt;
&amp;lt;br/&amp;gt;
&amp;lt;table width=100%&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td style="text-align: center; vertical-align: middle;"&amp;gt;
&amp;lt;img src="images/logo.png" height="100" style='align:center'&amp;gt; &amp;lt;/img&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;!--img src="images/logo.png" height="100" style='align:center'--&amp;gt;
&amp;lt;!--hr class='login'--&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='login_center'&amp;gt;
&amp;lt;form method="POST" action="HomeTemplate"&amp;gt;
  &amp;lt;input type="text" name="username" size="25" /&amp;gt;&amp;lt;b&amp;gt; UserName&amp;lt;/b&amp;gt;&amp;lt;br/
  &amp;lt;input type="password" name="password" size="25" /&amp;gt;&amp;lt;b&amp;gt; Password&amp;lt;/
b&amp;gt;&amp;lt;br/&amp;gt;
  &amp;lt;input type="checkbox" name="remember" value="Remember me"/&amp;gt;
Remember me
        &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;

  &amp;lt;table top=20px width=80% align='center'&amp;gt;
        &amp;lt;tr&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:left'&amp;gt;
        &amp;lt;a href="RegisterTemplate"&amp;gt;Register new account&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:right'&amp;gt;
                   &amp;lt;b&amp;gt;&amp;lt;input type="submit" value="Login"  size='15'
name='login'/&amp;gt;&amp;lt;/b&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='footer'&amp;gt;
&amp;lt;hr class='author'&amp;gt;
 Powered by &amp;lt;a href="http://www.mysite.com"&amp;gt;Kaola INC&amp;lt;/a&amp;gt; &amp;amp;copy;
2011-2012 Eug&amp;amp;egrave;ne NGONTANG
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

My py source code; where my index fonction is defined and the template
class is used:
#! /usr/bin/python
import cherrypy
from LoginTemplate import LoginTemplate

class LoginPage(object):
        "Login Page Clas"
        def __init__(self):
                self.tmpl = LoginTemplate()
                self.tmpl.title = "Login Page"
                self.tmpl.motd = "Login to Eugene System"
                self.tmpl.logo = "images/logo.png"

        def index(self):
                return self.tmpl.respond()
        index.exposed = True

cherrypy.config.update({'server.socket_host': '0.0.0.0',
                        'server.socket_port': 8080,
                       })
cherrypy.quickstart(LoginPage())

#cherrypy.tree.mount(login, "/"
#cherrypy.engine.start()

In principle, I wanted to use variables title, motd and logo in my
tmpl file, but i used directly values in a html file for testing

Finally error got from console when running the server :
papi&amp;lt; at &amp;gt;koalab:~/projets/my_project/src/admin$ ./Admin.py
[18/Apr/2012:12:14:01] ENGINE Listening for SIGHUP.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGTERM.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGUSR1.
[18/Apr/2012:12:14:01] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.

[18/Apr/2012:12:14:01] ENGINE Started monitor thread
'_TimeoutMonitor'.
[18/Apr/2012:12:14:01] ENGINE Started monitor thread 'Autoreloader'.
[18/Apr/2012:12:14:01] ENGINE Serving on 0.0.0.0:8080
[18/Apr/2012:12:14:01] ENGINE Bus STARTED
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.Hi!

I'm in my first real experience with python web development. I'm
developing a third part web application with  cheetah and cherrypy.
I use cheetah Template class for templating and it works find. But
when it define my color and html attribute in a css style file, and
use the &amp;lt;link&amp;gt; balise to link my css styles, it doesn't work.
In the other hand the server does not serve image for the web page,
defined in the &amp;lt;img sr=&amp;gt; balise
Thus the page is display without themes and color.

And in the console i get 404 error from the server for these
resources.

I don't know if the error is from cheetah but i think it could be from
cherrypy since i have a 404 error, manning that the resource is not
located by the server. Even when i put the full path of my css files
and images, the same thing happen

I use precompiled chestah template Below are my linux and python
configurations, and errors got from the console :

System used :  Debian squeeze
Python version : 2.6
Cherrypy version : 3.2.2

Css file:
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;herrpy
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
body {
    background-color: #3AD0F2;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: right bottom;
    text-align:center;
}

hr.author {
    background-color: green;
    color: green;
    height: 12px;
}

h1 {cherrypy
    color: #FFFFFF;
   // background-color:  #184860;
}

hr.login{
    height: 1px;herrpy
    color: #CCCCCC
    border: 0;
}

div.login_header {
padding: 0;
position: absolute;
top: 15px;
//padding: 10px;
height: 200px;
width: 98%;
border:0;
text-align:justify;
}

div.main_header {
position: absolute;
top: 15px;
padding: 10px;
height: 50px;
width: 100%;
border: 1px dashed orange;
}

div.left {
padding: 10px;
position: absolute;
left: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

div.login_center {
//padding: 10px;
position: absolute;
top: 300px;
//left: 50px;
height: 250px;
width: 98%;herrpy
border:0;
//border: 1px dashed orange;
}

div.main_center {
padding: 10px;
position: absolute;
top: 100px;
left: 250px;
height: 500px;
width: 500px;
border: 1px dashed orange;
}

div.right {
padding: 10px;
position: absolute;
right: 15px;
top: 100px;
width: 200px;
height: 500px;
border: 1px dashed orange;
}

cherrypydiv.footer {ancyCron
//padding: 10px;
position: absolute;
//right: 15px;
top: 660px;
height: 50px;
width: 98%;
//margin: 20px;
//padding: 10px;
border:0;
//border: 1px dashed orange;
}


html source code compilied as LoginTemplate class in my cherrypy py
file:
&amp;lt;!--##doc-module: Login page template, use to generate Login class
source  code
##Made by Eugene NGONTANG--&amp;gt;
&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Login Page&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" /&amp;gt;
&amp;lt;link rel="stylesheet" href="styles/my_style.css" type="text/css"
media="screen"/&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div class='login_header'&amp;gt;
&amp;lt;h2&amp;gt;Login to Eugene System&amp;lt;/h2&amp;gt;
&amp;lt;br/&amp;gt;
&amp;lt;table width=100%&amp;gt;
&amp;lt;tr&amp;gt;ancyCron
&amp;lt;td style="text-align: center; vertical-align: middle;"&amp;gt;
&amp;lt;img src="images/logo.png" height="100" style='align:center'&amp;gt; &amp;lt;/img&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;!--img src="images/logo.png" height="100" style='align:center'--&amp;gt;
&amp;lt;!--hr class='login'--&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='login_center'&amp;gt;
&amp;lt;form method="POST" action="HomeTemplate"&amp;gt;
  &amp;lt;input type="text" name="username" size="25" /&amp;gt;&amp;lt;b&amp;gt; UserName&amp;lt;/b&amp;gt;&amp;lt;br/
  &amp;lt;input type="password" name="password" size="25" /&amp;gt;&amp;lt;b&amp;gt; Password&amp;lt;/
b&amp;gt;&amp;lt;br/&amp;gt;
  &amp;lt;input type="checkbox" name="remember" value="Remember me"/&amp;gt;
Remember me
        &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;

  &amp;lt;table top=20px width=80% align='center'&amp;gt;
        &amp;lt;tr&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:left'&amp;gt;
        &amp;lt;a href="RegisterTemplate"&amp;gt;Register new account&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;td width=50%&amp;gt;
                &amp;lt;div style='float:right'&amp;gt;
                   &amp;lt;b&amp;gt;&amp;lt;input type="submit" value="Login"  size='15'
name='login'/&amp;gt;&amp;lt;/b&amp;gt;
                &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class='footer'&amp;gt;
&amp;lt;hr class='author'&amp;gt;
 Powered by &amp;lt;a href="http://www.mysite.com"&amp;gt;Koala INC&amp;lt;/a&amp;gt; &amp;amp;copy;
2011-2012 Eug&amp;amp;egrave;ne NGONTANG
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

My py source code; where my index fonction is defined and the template
class is used:
#! /usr/bin/python
import cherrypy
from LoginTemplate import LoginTemplate

class LoginPage(object):
        "Login Page Clas"
        def __init__(self):
                self.tmpl = LoginTemplate()
                self.tmpl.title = "Login Page"
                self.tmpl.motd = "Login to Eugene System"
                self.tmpl.logo = "imag
My py source code; where mes/logo.png"

        def index(self):
                return self.tmpl.respond()
        index.exposed = True

cherrypy.config.update({'server.socket_host': '0.0.0.0',
                        'server.socket_port': 8080,
                       })
cherrypy.quickstart(LoginPage())

#cherrypy.tree.mount(login, "/"
#cherrypy.engine.start()

In principle, I wanted to use variables title, motd and logo in my
tmpl file, but i used directly values in a html file for testing

Finally error got from console when running the server :
papi&amp;lt; at &amp;gt;koalab:~/projets/my_project/src/admin$ ./Admin.py
[18/Apr/2012:12:14:01] ENGINE Listening for SIGHUP.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGTERM.
[18/Apr/2012:12:14:01] ENGINE Listening for SIGUSR1.
[18/Apr/2012:12:14:01] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.

[18/Apr/2012:12:14:01] ENGINE Started monitor thread
'_TimeoutMonitor'.
[18/Apr/2012:12:14:01] ENGINE Started monitor thread 'Autoreloader'.
[18/Apr/2012:12:14:01] ENGINE Serving on 0.0.0.0:8080
[18/Apr/2012:12:14:01] ENGINE Bus STARTED
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/log.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"

Try to compile and use this from your side if possible, and help to
solve this issue. My aim is not to have any html line in my core
source code, and it looks like by this way, all my html balises that
use external included esources like javascript files, css files and
images, will not be loaded.

How to solve this properly please?

Thanks a lot for your help.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:04] "GET /home/papi/projets/
my_project/src/admin/images/log.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:05] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16a) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"

Try to compile and use this from your side if possible, and help to
solve this issue. My aim is not to have any html line in my core
source code, and it looks like by this way, all my html balises that
use external included esources like javascript files, css files and
images, will not be loaded.

How to solve this properly please?

Thanks a lot for your help.2:14:05] "GET /home/papi/projets/my_project/
src/admin/images/logo.png HTTP/1.1" 404 1300 "http://localhost:8080/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (like Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET / HTTP/1.1" 200 1059 ""
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120315
Iceweasel/3.5.16 (liake Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /styles/my_style.css HTTP/
1.1" 404 1216 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like
Firefox/3.5.16)"
127.0.0.1 - - [18/Apr/2012:12:14:18] "GET /home/papi/projets/
my_project/src/admin/images/logo.png HTTP/1.1" 404 1300 "http://
localhost:8080/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16)
Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)"

Try to compile and use this from your side if possible, and help to
solve this issue. My aim is not to have any html line in my core
source code, and it looks like by this way, all my html balises that
use external included esources like javascript files, css files and
images, will not be loaded.

How to solve this properly please?

Thanks a lot for your help.

&lt;/pre&gt;</description>
    <dc:creator>Eugene NGONTANG</dc:creator>
    <dc:date>2012-04-22T20:55:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7548">
    <title>Trailing Slashes tool not working?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7548</link>
    <description>&lt;pre&gt;I cannot get the trailing_slash tool to work. I've played around with
the options and nothing seems to have any effect.
I am using CherryPy 3.2.2 and Routes 1.13. I would like to have a
trailing slash added. There is no errors in the debug output.

If I go to http://127.0.0.1:8080/blog/index/ it works, however if I go
to http://127.0.0.1:8080/blog/index it doesn't.

The two files of interest are:
The main program is: https://bitbucket.org/ddevine/icdy/src/872f3969a341/icdy.py
And the routes I am testing are in:
https://bitbucket.org/ddevine/icdy/src/872f3969a341/blog/__init__.py

Can anybody see what I am doing wrong? Is there a bug or lack of
essential documentation?

--Daniel Devine

&lt;/pre&gt;</description>
    <dc:creator>Daniel Devine</dc:creator>
    <dc:date>2012-04-22T14:09:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7545">
    <title>Unittests for client code</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7545</link>
    <description>&lt;pre&gt;Hello, everyone-

We have an application that contains both server (written in cherrypy) code
and client code that queries the server (i.e. different components on
different machines communicate over REST), but our unittest harness is a)
somewhat flaky (transient connection errors) b) somewhat innacurate because
cherrypy is running in the same process as the client code (though in a
different thread).

Does someone have an example for robustly starting/stopping a cherrypy
server in a separate process and doing the proper synchronization to keep
the client from attempting to connect before the server has finished
acquiring the socket and starting up?

I saw the code in the cherrypy test tree, but it appears it starts the
server in the same process.

Thanks,
Andrew

&lt;/pre&gt;</description>
    <dc:creator>Andrew Melo</dc:creator>
    <dc:date>2012-04-19T09:43:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7542">
    <title>subprocess and cherrypy</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7542</link>
    <description>&lt;pre&gt;Hi,

My web application involves many subprocesses to get data back to the
website. I was wondering, if there was a best practices guide or even
better some examples on how to handle this use case?

&lt;/pre&gt;</description>
    <dc:creator>Rita Morgan</dc:creator>
    <dc:date>2012-04-15T12:08:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7539">
    <title>running cherryd</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7539</link>
    <description>&lt;pre&gt;Hello,

Planning to deploy my app and I was wondering, should I use

cherryd -i cpapp -c prod.conf

to deploy my application or the conventional python capp.py ? I
personally like, cherryd, but was wondering if that was ok.

This is to serve about 50 users.

&lt;/pre&gt;</description>
    <dc:creator>Rita Morgan</dc:creator>
    <dc:date>2012-04-13T11:33:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7534">
    <title>standalone cherrypy</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7534</link>
    <description>&lt;pre&gt;Hi,

I would like to deploy a web application for my team. There will be
about 50 users using it. Would a standalone cherrpy server be
sufficient or should I go with mod_wsgi with cherrypy?

&lt;/pre&gt;</description>
    <dc:creator>Rita Morgan</dc:creator>
    <dc:date>2012-04-12T11:19:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7533">
    <title>problem combining streaming and content-type</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7533</link>
    <description>&lt;pre&gt;Hi all,

I'm trying to use response.stream to stream a large gzip file.  I'd
also like to set 'Content-Type' to 'application/z-gzip' so that the
browser (Chrome) automatically
opens the file chooser and loads the data into a file.  I can
successfully do one or the other, but when I do both, the content-type
isn't transmitted in the header.
Here is simplified code that has this behavior (using cherrypy
3.1.2).  Note that I've simplified the generator to only return one
chunk for this example; of course in the actual case I'd read the
entire file.

    &amp;lt; at &amp;gt;cherrypy.expose
    def getfile2(self, *rest):

        cherrypy.response.headers['Content-Type']='application/x-gzip'

        path='/'.join(rest)
        buf =
open(path).read(10000)
        yield buf

    getfile2._cp_config = {'response.stream': True}

If I remove the line setting response.stream to True, and turn the
yield into return, the content type is correctly placed in the header
and I am prompted to save the file.  As is, the header returned to the
browser has content type set to 'text/html', rather than application-x-
gzip.

Thanks for any help,

Rob

&lt;/pre&gt;</description>
    <dc:creator>Robert Bjornson</dc:creator>
    <dc:date>2012-03-28T20:22:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7532">
    <title>Unintended/undocumented incompatibility btw cp3.2 and cp3.3 with form values?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7532</link>
    <description>&lt;pre&gt;Hi,
we have been using cherrypy for many years now (and we are really happy 
users...), just the latest new version gives us some headaches with 
upgrading to it.

The reason for this is that variables contained in the URL of a page are 
now added to the content of a posted form if variables with the same name 
exist.
Example:

URL: my.host/page?myvalue=4

The form returned would look like:
&amp;lt;html&amp;gt;
  &amp;lt;form action="" method="POST"&amp;gt;
    &amp;lt;input type="hidden" name="myvalue" value="5" /&amp;gt;
    ...
  &amp;lt;/form&amp;gt;
&amp;lt;/html&amp;gt;

After submitting, with cp3.2 the resulting cherrypy.request.params 
dictionary would only contain the value of the hidden field for 'myvalue', 
i.e. being {'myvalue': '5'}
Now in cp3.3 the value from the URL would be added to it, so we receive{'myvalue': ['4', '5']}.
Note: Since "action" is empty the same URL would be used for the POST 
request. But this has always been the case.

Is this change in behavior intended? Can it be suppressed?

Any help would be appreciated.

Thanks,

Ralph


&lt;/pre&gt;</description>
    <dc:creator>Ralph Heinkel</dc:creator>
    <dc:date>2012-04-03T09:12:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7531">
    <title>timeout issues</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7531</link>
    <description>&lt;pre&gt;Firstly, thanks for the great package!

When using cherrypy, I'd appreciate help with the following behaviour:

I have a long, blocking call (several hours). The call completes
normally (no error), but upon exiting, I see the following in the log:

2012-03-27 20:53:48,547 : INFO : _cplogging:280 : access(CP Server
Thread-7) : 127.0.0.1 - - [27/Mar/2012:20:53:48] "POST /indexize HTTP/
1.1" 200 14 "" "python-requests/0.10.8"
[27/Mar/2012:20:53:48]  Traceback (most recent call last):
  File ".../lib/python2.7/site-packages/cherrypy/_cpwsgi.py", line
169, in trap
    return func(*args, **kwargs)
  File ".../lib/python2.7/site-packages/cherrypy/_cpwsgi.py", line 96,
in __call__
    return self.nextapp(environ, start_response)
  File ".../lib/python2.7/site-packages/cherrypy/_cpwsgi.py", line
379, in tail
    return self.response_class(environ, start_response, self.cpapp)
  File ".../lib/python2.7/site-packages/cherrypy/_cpwsgi.py", line
222, in __init__
    self.run()
  File ".../lib/python2.7/site-packages/cherrypy/_cpwsgi.py", line
320, in run
    request.run(meth, path, qs, rproto, headers, rfile)
  File ".../lib/python2.7/site-packages/cherrypy/_cprequest.py", line
603, in run
    raise cherrypy.TimeoutError()
TimeoutError

The client (using python-requests here) then receives a 500.

I googled for "cherrypy timeout", reading several older posts, but I'm
still not sure what to touch to get rid of this cleanly. My intent is
to avoid these timeout errors.

Cheers,
Radim

&lt;/pre&gt;</description>
    <dc:creator>Radim</dc:creator>
    <dc:date>2012-03-27T20:37:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cherrypy/7508">
    <title>CherryPy Recipes</title>
    <link>http://comments.gmane.org/gmane.comp.python.cherrypy/7508</link>
    <description>&lt;pre&gt;Hi folks,

I've started adding more recipes to the CherryPy Recipes Mercurial
repository I'm holding on BitBucket.

https://bitbucket.org/Lawouach/cherrypy-recipes

It's fare from covering all aspects of CherryPy but hopefully will help
some of you. Recipes are based on CherryPy 3.2.2 but should work down to 3.1

&lt;/pre&gt;</description>
    <dc:creator>Sylvain Hellegouarch</dc:creator>
    <dc:date>2012-03-19T18:16:22</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.cherrypy">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.cherrypy</link>
  </textinput>
</rdf:RDF>

