List Info

Thread: Trouble with staticFilter




Trouble with staticFilter
user name
2006-03-13 16:17:24
Hi all,

I have a Cherrypy project with the following structure...

CherrypyProject/
	configfile.conf
	data/
		css/
			default.css
		js/
			moo.fx.js
			moo.fx.pack.js
			prototype.lite.js
	index.html
	plannerv1.py
	plannerv1.pyc

index.html is valid xhtml that is modified by meld3 and
returned by
Cherrypy on accessing 'http://localhost:8080/
planner/'

The xhtml references 'default.css' thus (<link
rel="stylesheet"
type="text/css" href="default.css"
/>).

My configfile.conf contains the following statements which -
I assumed
- should get Cherrypy to serve 'default.css' from
/data/css/default.css'

[global]
staticFilter.root =
"/Users/rob/Desktop/CherrypyProject/data"

[/default.css]
staticFilter.on = True
staticFilter.file = "/css/default.css"

In short... it doesn't work. I've tried with and without
absolute
paths, leading and trailing slashes. The css is valid, the
configfile
is being loaded correctly.

Any help would be great. Thanks

Rob Cowie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Trouble with staticFilter
user name
2006-03-13 18:06:08
Rob,
What happens when you try:

[global]
staticFilter.root = /


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )