[Pydev-code] Runtime-declared variables in external modules
Brought to you by:
fabioz
|
From: Elver L. <elv...@gm...> - 2010-08-18 07:18:55
|
Hi!
Not sure if this is the right place to ask this question, but here it is anyway.
I'm using CherryPy a lot, and its session-keeping features. Basically
CherryPy exposes a dictionary that can be used to store session
variables, like this:
import cherrypy
cherrypy.session["username"] = "parrot"
username = cherrypy.session.get("username")
Problem is -- CherryPy's module does not contain the session variable.
It is created at run time. So that every line where I access
cherrypy.session in any way is marked red by PyDev. Which is annoying.
Yes, I could add #@UndefinedVariable at the end of each such line, but
that's not very sensible in the long run. And putting it at the end of
just a single line does not fix things in the rest of the file.
What should I do?
Best,
Elver
elv...@gm...
+372 5661 6933
http://memeresearch.com/
skype: elver.loho
|