Feature request : give access to the environ dictionnary
Asked by
Greg
Hello,
I couldn't find any way to access the environ from a ladonized method.
In particular, I wanted to access REMOTE_ADDR variable.
I fix my own copy of Ladon code to get the environ as a class constructor parameter like this :
server/
service_
Hence, I can write code like that:
class MyService:
def __init__(environ):
self.environ = environ
@ladonize(...)
def myMethod(self, ...)
doSomethi
Well, my code will fail if the service constructor takes no parameters but is it possible to have a similar feature integrated in Ladon trunk ?
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- ladon Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Greg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.