I use Sublime Text 3 and installed

Pakage Manager, SublimeLinter and Pylint as indicated in

http://www.sublimelinter.com/en/latest/installation.html

Then, in Sublime Text | Preferences | Package Settings | SublimeLinter |
Settings - User

I have set "linters" / "pylint" / "paths" as follows

{
    "user": {
    ...

        "linters": {
            "pylint": {
            ...

                "paths": [
        "/path/to/web2py",
        "/path/to/web2py/applications/app/modules"
                ],

                ...
            }
            ...


At the beginning of my .py files I add something like:

# -*- coding: utf-8 -*-

if 0:
    from gluon import response, T, ...


And this makes the syntax checker find the modules he needs for the class
and methods definitions.

Hope this helps.

On Wed, Jul 9, 2014 at 7:26 PM, eric cuver <amihaconsult...@gmail.com>
wrote:

> i add folder gluon in package directory et user directory with
> include  "if 0: from gluon import * but doesnt work
>
> Le mercredi 9 juillet 2014 18:24:28 UTC+2, JorgeH a écrit :
>
>> Thanks for the tip
>>
>> And yet...
>>
>> Could you post a fool-proof example?
>>
>> Thanks
>>
>> On Wednesday, July 9, 2014 10:31:36 AM UTC-5, Massimo Di Pierro wrote:
>>>
>>> I do know sublime text. I am assuming there is a way to tell it where to
>>> look for python modules for autocomplete.
>>>
>>> On Wednesday, 9 July 2014 10:06:25 UTC-5, JorgeH wrote:
>>>>
>>>> You mean in the OS dir path??
>>>>
>>>> On Wednesday, July 9, 2014 7:13:46 AM UTC-5, Massimo Di Pierro wrote:
>>>>>
>>>>> If your problem is the lack of autocompletion try add gluon to path
>>>>> and include "if 0: from gluon import *" on your files. Everything else
>>>>> should work out of the box.
>>>>>
>>>>> On Wednesday, 9 July 2014 04:29:49 UTC-5, eric cuver wrote:
>>>>>>
>>>>>> hello,
>>>>>>
>>>>>> how can we do to configure sublime text 3 to work web2py
>>>>>>
>>>>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to