Using the code for the training

We provide the code for this training divided in into chapters.

Telling Plone about ploneconf.site

Modify buildout.cfg to have Plone expect the egg ploneconf.site to be in src.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
eggs =

...

# our addons
    ploneconf.site
#    starzel.votable_behavior

...

[sources]
ploneconf.site = fs ploneconf.site full-path=${buildout:directory}/src/ploneconf.site

Gettin the code-package

Download the code into a directory called src/ploneconf.site_sneak.

$ cd src
$ git clone https://github.com/collective/ploneconf.site_sneak.git

Copy the relevant chapter so that Plone can use into

To use the code for a certain chapter stop Plone and do this:

$ cp -R src/ploneconf.site_sneak/chapters/<number_and_name_of_chapter>/ src/ploneconf.site
$ ./bin/buildout
$ ./bin/instance fg

This will:

  • replace any existing previous chapter with the one you want to copy
  • run buildout and restart Plone

These are the chapters for which there is code:

12_eggs1
13_dexterity
14_views_1
16_zpt_2
17_views_2
18_views_3
19_behaviors_1
20_viewlets_1
23_dexterity_2
25_events
26_user_generated_content
27_ressources
29_dexterity_3
34_embed