#832: TG Welcome page hangs waiting for localhost trying to display
tg_under_the_hood.png
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy | Version: 0.9a5
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Comment (by fumanchu):
Here's a demo I wrote to demonstrate the problem (uses CP 3). Too bad it
worked for me ;) If the OP could post demo code that fails, it would help
a lot.
{{{
import os
import cherrypy
from cherrypy import tools
localdir = os.path.dirname(__file__)
png = os.path.join(localdir, "tg_under_the_hood.png")
class Root:
def index(self):
return "<img src='/tg_under_the_hood.png' />"
index.exposed = True
tg_under_the_hood_png = tools.staticfile.handler(filename=png,
root=os.getcwd())
cherrypy.config.update({
'log_to_screen': True,
'environment': 'production',
})
cherrypy.quickstart(Root())
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/832>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---