[Pydev-code] code completion issues
Brought to you by:
fabioz
|
From: Lee C. <lee...@ho...> - 2006-10-01 04:04:35
|
First off, thanks for a great python tool!
I'm using pydev 1.2.4 and Eclipse 3.2 and JDK 5.0
When I add a new source folder to my project, a "Create a new python module"
comes up instead of "Create a new source folder".
I have an issue with code completion. This is going to take a bit to
explain. If you can look at the code first I will explain at the end.
-----------------------------------------------------------------------------------
import cherrypy
import turbogears
from turbogears import controllers, expose, redirect
from turbogears import identity
from turbogears.toolbox.catwalk import CatWalk
import model
import model.User
class Users:
def add(self, email):
# Remove extra spaces
email = email.strip()
# Remove null bytes (they can seriously screw up the database)
email = email.replace('\x00', '')
if email:
try:
user = model.User.byEmail(email)
user2 = model.User.get(1)
except model.SQLObjectNotFound:
user = model.User(email=email)
turbogears.flash("User %s added!" % email)
else:
turbogears.flash("User %s already exists!" % email)
else:
turbogears.flash("E-mail must be non-empty!")
redirect('index')
----------------------------------------------------------------------------
first off code completion works for "model.User.get()" however it does not
know about "model.User.byEmail()"
now if i issue "user." which is part of "model.User.byEmail()" call, it does
auto complete this.
if i call "user2." which is part of "model.User.get()" it does NOT auto
complete.
How come this is happening and is there a way to fix this?
_________________________________________________________________
Express yourself - download free Windows Live Messenger themes!
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline
|