Joel Hedlund wrote:
Hi!
I've cooked up a new version of my 'Assign method parameters to
attributes of
self' script.
Hi Joel:
I installed and played a little with your script - looking good.
Since I am congenitally unable to accept any compiler error messages I
changed the initial guard block from:
if False:
from org.python.pydev.editor import PyEdit [EMAIL PROTECTED]
cmd = 'command string'
editor = PyEdit
to:
if False: [EMAIL PROTECTED]
# None of this code will be executed, but it will stop Pydev
# extensions from complaining about undefined variables.
cmd = cmd [EMAIL PROTECTED]
editor = editor [EMAIL PROTECTED]
document = document [EMAIL PROTECTED]
False = False [EMAIL PROTECTED]
True = True [EMAIL PROTECTED]
Note that bogus document = document assignment and that I have dropped
the bogus import statement and used a bogus assignment for editor. At
least there is only one trick being used here to resolve all of these
undefined variables.
Fabio: is this OK?
Don.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code