web2py trouble with variables defined in models (or built-ins)
I am developing in web2py, and I notice that all occurrences of web2py implicit variables (defined in files other than the current one), such as db, session, request, and more, are marked as errors (missing references) from the inspector. If I turn down warnings for missing references, I also lack warnings for things like:
a = b + 3
where b has never been defined.
Is there a way to have PyCharm's analysis respect the (admittedly peculiar) way in which in web2py you can define a variable e.g. in a model file, and then use it in a controller?
a = b + 3
where b has never been defined.
Is there a way to have PyCharm's analysis respect the (admittedly peculiar) way in which in web2py you can define a variable e.g. in a model file, and then use it in a controller?
Please sign in to leave a comment.
However, built-ins such as session, request, URL, A, SQLFORM, ... are not.
In my project, web2py appears listed as an external library, in case that matters.