#715: Static file and static directory objects
-------------------------+--------------------------------------------------
Reporter: kevin | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: __future__
Component: TurboGears | Version: 0.9a6
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by [EMAIL PROTECTED]):
Is this met by !CherryPy 3's tool.handler syntax?
{{{
#!python
import os
absDir = os.path.join(os.getcwd(), os.path.dirname(__file__))
from cherrypy import tools
class Root:
nav = tools.staticdir.handler(section="/nav", dir="nav", root=absDir)
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/715>
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?hl=en
-~----------~----~----~----~------~----~------~--~---