I want to get code completion working in my editor (currently using Komodo 
Edit).  I have seen that at the top of my files I need to put something 
like:
 
if 0:
   from gluon.sql import *
   from gluon.sqlhtml import *
   from gluon.html import *
   db = DAL()
   #optionally use table references instead of db reference
   mytable = Table()

 
I try this but I still don't get completion.  In Komodo preferences I can 
also specify additional python import directories for Komodo to look for 
in.  Do I need to add something there? Tried adding the root web2py folder 
but this doesn't seem to make a difference.  Do I need to use the source 
download of web2py (web2py_src.zip) to get code completion or does it also 
work with web2py_win.zip?
 
Other than putting the above code snippet in my controller, what other step 
might I be missing?
 
 
 

-- 
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/groups/opt_out.

Reply via email to