Hi, is it possible to return content from controller rather
than
"real" static file? Take my case. I have a
test.txt file in /static/
and a expose method static, if I request url http://localhos
t:8080/static/test.txt,
it returns "In file test.txt". But I do need the
content returned from
controller, that is "In controller". Any idea?
# /path/to/static/test.txt
In file test.txt
# Controller.py
class Root(controllers.RootController):
expose()
def static(name):
return 'In controller'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|