Posts by Tag "Eclipse"

Subscribe to posts of this tag

Import and PYTHONPATH Problems with PyDev and Linux

Today is began to configure my PyDev Eclipse enviroment since I want to learn Python and need it for a programming aspect of my forthcoming diploma thesis. I ran into several difficulties getting the plugins run dialog to work. It seems that configuring the python interpreter under linux and adding all the correct include paths is not enough, even when following the PyDev FAQ.

Nearly giving up I came up with sort of a hack to get it running. Eclipse can execute arbitrary "External Tools" (Find it at: "Run -> External Tools -> Open External Tools Dioalog"). I used this facility to integrate an external tool "Python" with path "/usr/bin/python". Now to automatically execute the currently active python script, you can specify the line: "${resource_loc}" in the arguments field of the dialog and you're good to go.

You now circumvented the PyDev internal execution scheme and work with the pure command line interpreter. This way all the problems of PyDev with the PythonPath, Symlinks and whatever are gone.

Update: Another note maybe, you can also add the action "running the last used external tool again" as keyboard shortcut in the Eclipse preferences. This simplifies the execution even more.

Zend_Form - Rapid Development Plugin for Eclipse?

I found some time in the last weeks to reconsider Zend Framework, this time in the 1.5 version, for this blog software and rewrote all Forms using the new Zend_Form component. I have to say, i love it. Its very easy using the already existing Zend_Validate and Zend_Filter components as input for the generated form fields. Another plus is the handling of errors in input and re-entering/displaying text.

There is also a neat feature of the Zend_Form component, which allows to generate complete forms by passing an appropriatly formatted Zend_Config_Ini object to the Zend_Form Constructor. So my idea was, why not program an Eclipse Plugin allowing to rapidly generate and edit forms using a point-and-click plugin window approach, which would ultimatly generate your Form INI code.

This might have been a great Google Summer of Code idea for the Eclipse Foundation (since Zend is not taking part).