You cannot post messages because only members can post, and you are not currently a member.
Description:
For questions about using CherryPy
|
|
|
Custom tool: where is session?
|
| |
I use basic_auth. But I need some way to save the additional info
about logged user in session. How to do it? Does exists way to
"listen" successfull authentification with 'basic_auth' ? I can't find
something like this.
So, I try to write own, custom 'basic_auth':
def my_basic_auth(realm, users, encrypt=None):... more »
|
|
Reload application configuration
|
| |
Hello,
I have a web application using Cherrypy 3.1 that I start with the
"startServer" method
def getusers():
'''Returns a dictionnary :
- key : user login
- value : user password hash
'''
all_users = {}
for utilisateur in wapp.creche.utilisateurs:
all_users[utilisateur.login] = utilisateur.motDePasseChiffre... more »
|
|
Cherrypy Flex and upload
|
| |
To keep things simple I'm using the tut09_files.py example that comes
with cherrypy
All things are dandy if I use the form to upload the form
But if I use Flex to try to upload the file using
fileReference.upload(new URLRequest("[link]
upload"));
I get the following error in cherrypy... more »
|
|
Configuring log line format (headers)
|
| |
Hi there,
My CherryPy application is running behind Apache and so the host
portion of my access and error log lines is always '127.0.0.1'. Of
course, Apache gives CherryPy the original requesting host in X-
Forwarded-For' (I think). But how do I configure CherryPy's log
messages to include this X-Forwarded-For host header instead of the... more »
|
|
need help using cherrypy
|
| |
Hi All, i know this is very basic usage, i am a new user of cherrypy. i have a problem like below def index(self): return """<form method='POST' action='/form'> type something <input type='text' name='inp'> <input type='submit'> </form>""" index.exposed=True def form(self,inp=None,**kw):... more »
|
|
html, rss, atom, Oh My!
|
| |
I am working on a back end controller to serve out data to various
clients. What I'm looking for is a way to return data in a variety of
formats based on the client request. for instance:
/controller/noun/verb returns html (the default)
/controller/noun/verb.html returns html... more »
|
|
Invitation to connect on LinkedIn
|
| |
LinkedIn ------------ I'd like to add you to my professional network on LinkedIn. - Arjun Confirm that you know Arjun Kochhar [link] Every day, millions of professionals like Arjun Kochhar use LinkedIn to connect with colleagues, find experts, and explore opportunities.... more »
|
|
Method dispatcher wiki example problem
|
| |
Taking the example from the wiki:
import cherrypy
class Root():
exposed = True
def __init__(self, *things):
self.things = list(things)
def GET(self):
return repr(self.things)
def POST(self, thing):
self.things.append(thing)
root = Root(1, 2, 3)... more »
|
|
|