Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4771643
By: rnicholson
Hi,
I've been using PyDev for creating ginder scripts (grinder.sourceforge.net).
I'm running the latest version of PyDev Extensions on Eclipse 3.3
When I add a jar (grinder.jar) to the project's python path it enables code
completion for the grinder java packages.
from net.grinder.script.Grinder
A list of packages pops up nicely as I type...
However, I don't seem to be able to import objects from these packages?
from net.grinder.script.Grinder import <Ctrl+Space> brings up nothing?
If I manually fill in the line:
from net.grinder.script.Grinder import grinder
The object "grinder" will cause an error, this is a static public variable
within
the "Grinder" class...
Similarly, when calling methods from a Grinder class I also get an error:
from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest
#No Error
connectionDefaults = HTTPPluginControl.getConnectionDefaults() #Static
Method
call Error
httpUtilities = HTTPPluginControl.getHTTPUtilities() #Static Method Call
Error
Any ideas why this happens?
It does not seem to happen with the standard java packages?
I've also tried adding "grinder.jar" to the System PYTHONPATH as opposed to
the Project PYHTONPATH but it acts the same way...
Cheers,
Ross
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users