Plone Tutorial – Usefull Stuff

Post By Vilmos Somogyi ~ 23rd August 2008

*to have these tools you have to have development enviroment set up (see Plone Tutorial – dev buildout)!

- Plone Reload
As you can notice, we have added plone.reload to devel.cfg. This is a great tool for developers. This enables to change every file (including .py and .zcml) without restarting the server. All you need to do is to point your browser to http://localhost:8080/@@reload, and hit the Relode Code or the Relode Code and ZCML button.

Read Full Post >>

Plone Tutorial – tips and tricks

Post By Vilmos Somogyi ~ 23rd August 2008

Using snapshots to record changes

You can see the changes to the files on your hard disk when changing something in ZMI or Plone Control Panel.
All you need to do is to follow a few simple steps:

Read Full Post >>

Plone Tutorial – dev buildout

Post By Vilmos Somogyi ~ 23rd August 2008

0. Make sure that you’ve set up a virtual environment (virtualenv --no-site-packages ./) and source bin/activate

1. Create base.cfg and devel.cfg

For now we had only buildout.cfg, but now we are replacing it with the two new files.
Look at your buildout.cfg, and figure it out what was changed:

Read Full Post >>

Plone Tutorial – Importing content

Post By Vilmos Somogyi ~ 23rd August 2008

1. copy the .zexp files to /zulu/parts/instance/import
2. go to zmi
3. select your site
4. then you have a import button at the end of the main window, click it
5. from the lower dropdown select content.zexp, take ownership and import
that should do the trick

Plone Tutorial – Localization

Post By Vilmos Somogyi ~ 23rd August 2008

1. Download l18ndude from http://plone.org/products/i18ndude

2. Install it
easy_install i18ndude...

3. In configure.zcml add:

<configure
xmlns:i18n=”http://namespaces.zope.org/i18n”>

<i18n:registerTranslations directory=”locales” />

</configure>

Read Full Post >>

Plone Tutorial – New Theme Product with Paster

Post By Vilmos Somogyi ~ 23rd August 2008

1. Go to src/ directory of the buildout

2. Run:

$ paster create -t plone3_theme [project].theme

Namespace: [project]
Package: theme
Skinname: [project] Theme
Skinbase: Plone Default
Zip safe flag: False

The rest isn’t important.

Read Full Post >>

Plone Tutorial – New Policy Product with Paster

Post By Vilmos Somogyi ~ 23rd August 2008

1. Go to src/ directory of the buildout

2. Run:
$ paster create -t plone [project].policy

Namespace: [project]
Package: policy
Zope2product: True
Zip safe flag: False

The rest isn’t important in this step.

Read Full Post >>

Plone Tutorial – SVN and Buildout

Post By Vilmos Somogyi ~ 23rd August 2008

#go to the folder where you have your projects
cd /plone

# checkout trunk of the project. Substitute [project] with the name of your project
# you should have already received user and pass for your svn server
– svn co [server/buildout/trunc] [project]

# go in the project folder
– cd [project]

# make bin files
– python bootstrap.py

# run buildout
– ./bin/buildout

# run instance
– ./bin/instance fg

Username, pass is dev:dev (this may be different for your project. See buildout.cfg).

Then you’ll have to add a new plone site in ZMI and start having fun :)