Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.eclipsescripts

How to install collective.eclipsescripts

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.eclipsescripts
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
Links
License
GPL
Dependencies
Lastest release
version 0.1 on Jan 5th, 2011

Introduction

collective.eclipsescripts is an Eclipse integration plug-in for Plone development. It aims to provide effective way for novice developers to get started with Plone.

Features

  • Create Eclipse workspace from buildout installation - all Python projects inside src/ folder structure are

System Message: WARNING/2 (<string>, line 13)

Bullet list ends without a blank line; unexpected unindent.

converted to Eclipse projects. You can keep your buildout in sync with your Eclipse workspace with one command.

  • Set Eclipse preferences suitable for Plone/Zope development
  • Tab stops to 8 spaces
  • File associations: .pt, .dtml, .zcml, etc.
  • Version control ignores (do not commit egg-info folders)
  • Text encoding settings to UTF-8
  • Different UI Run shortcuts are automatically created
  • IDE compatible Zope launching script (retains console output by not making Zope to fork on start-up)
  • Plone local instance
  • Unit test runners for all projects
  • Run buildout
  • Open Zope debug shell
  • Edit buildout.cfg

Prerequirements

What you need to know before messing with this script

  • Basic Plone development and Eclipse usage knowledge
  • What is buildout and buildout folder structure
  • How to use Eclipse IDE

Installation

Note: Currently we can't support installation as Python egg or Eclipse plug-in bundle. This is being worked out.

  • Install Aptana Studio with PyDev and Subclipse plug-ins. Standalone Aptana installation

System Message: WARNING/2 (<string>, line 58)

Bullet list ends without a blank line; unexpected unindent.

is recommended as it is the fastest way to get started - you do not need to manually gather and install plug-ins.

  • Standard Eclipse standalone installation seems to have some componenent version compatibility issues.

System Message: WARNING/2 (<string>, line 61)

Bullet list ends without a blank line; unexpected unindent.

Aptana is recommended way to install Eclipse for Python development.

  • Install Python Monkey and restart Eclipse
  • Checkout this project using Subclipse/Subversive to Eclipse workspace as a project
  • Repository URL: https://svn.plone.org/svn/collective
  • Project path: collective.eclipsescripts/trunk
  • Alternatively copy Python egg contents to script/ folders under some of your Eclipse projects
  • Immediately menu Scripts should appear in the top menu bar
  • Open scripts in Python editor to see comments what they do
  • Execute scripts by picking then from Scripts menubar
  • Open console to see possible sccript output
  • Choose menu Window -> Show View -> Console. Then choose Eclipse Monkey Console

System Message: WARNING/2 (<string>, line 82)

Bullet list ends without a blank line; unexpected unindent.

from alternative console views. Note: console might not be available until you have run one of the scripts.

Usage

  • Create Plone 3 buildout - use your favorite buildout integrated tool to manage source code checkout under src/.

System Message: WARNING/2 (<string>, line 89)

Bullet list ends without a blank line; unexpected unindent.

E.g. 'Mr. Developer <http://pypi.python.org/pypi/mr.developer>`_

  • Launch Eclipse - Switch workspace and choose src/ folder in buildout as the workspace location
  • Configure Python 2.4 (for Plone 3.x) in preferences
  • Set workspace settings - Choose Scripts -> Plone -> Set Plone Preferences
  • Choose Scripts -> Plone -> Import src folder as workspace to import all checked out projects

System Message: WARNING/2 (<string>, line 98)

Bullet list ends without a blank line; unexpected unindent.

under src/ as Eclipse projects. If you add new projects you can run this command without losing manual changes made to the projects.

  • Plone instance and projects will have launchers created in Run configurations... menu
  • Optionally, if you are using collective.recipe.omelette

System Message: WARNING/2 (<string>, line 104)

Bullet list ends without a blank line; unexpected unindent.

all Plone packages are added under PyDev builders and code autocompletion will work for the projects

  • Choose Scripts -> Plone -> Edit buildout.cfg if you wish to edit buildout.cfg

How it works

Python Monkey exposes Eclipse process to Python scripting environment through Jython run-time. Everything what can be done by Eclipse plug-ins and Java development can be now done with few lines of Python code. This makes the development of integration options for Eclipse real quick and dirty.

Also, you do not need to have a separate Eclipse project for your scripts. You can keep your scripts within any Eclipse project in scripts top level folder.

Possible future features

  • Deploy as real Eclipse plug-in
  • paster integration: add view, content types directly from IDE
  • deployment integration

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.