Changes between Version 27 and Version 28 of EggCookingTutorial/BasicEggCooking


Ignore:
Timestamp:
Feb 25, 2008, 6:46:20 PM (16 years ago)
Author:
ken.stricklett@…
Comment:

Minor editorial changes. No change in content.

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/BasicEggCooking

    v27 v28  
    33= Egg cooking =
    44
    5 Since Trac 0.9 it has been possible to write plugins for Trac to extend Trac functionality.  Even better, you can deploy plugins as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs] that really makes plugin development fun and easy.
     5Since Trac 0.9 it has been possible to write plugins for Trac to extend Trac functionality.  Even better, you can deploy plugins as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs], which really makes plugin development fun and easy.
    66
    77This tutorial shows how to make an egg, and load an egg in Trac. In the advanced parts you'll learn how to serve templates and static content from an egg.
     
    8989}}}
    9090
    91 You will also have to add special [http://peak.telecommunity.com/DevCenter/EggFormats#project-metadata egg metadata] to cater to trac's plugin loader.  Create the directory
    92 ''./TracHelloworld.egg-info'' which corresponds to ''PACKAGE'' and edit the file ''trac_plugin.txt'' underneath it, adding the following:
     91You will also have to add special [http://peak.telecommunity.com/DevCenter/EggFormats#project-metadata egg metadata] to cater to Trac's plugin loader.  Create the directory
     92''./TracHelloworld.egg-info'', which corresponds to ''PACKAGE'', and edit the file ''trac_plugin.txt'' underneath it, adding the following:
    9393
    9494{{{
     
    9898== First deployment ==
    9999
    100 Now try to build the plugin. Run the command {{{python setup.py bdist_egg}}} in the directory where you created it. If everything went OK you should have a .egg file in ''./dist'' directory.
     100Now try to build the plugin. Run the command {{{python setup.py bdist_egg}}} in the directory where you created it. If everything went OK, you should have a .egg file in ''./dist'' directory.
    101101
    102102Copy this ''.egg'' file to ''/[your trac env]/plugins'' directory. Restart the trac server.  If you're using mod_python you have to restart Apache.
    103103
    104 Now you should see ''Hello'' link at far right in main navigation bar when accessing your site. Click it.
     104Now you should see ''Hello'' link at far right in the main navigation bar when accessing your site. Click it.
    105105
    106106== Aftermath ==
    107107
    108 Now you have successfully created your first egg. You can continue by reading [wiki:EggCookingTutorial/AdvancedEggCooking EggCookingTutorial/AdvancedEggCooking] to learn how to use templates in your plugins, and make its output look like other Trac pages.
     108Now that you have successfully created your first egg, you can continue by reading [wiki:EggCookingTutorial/AdvancedEggCooking EggCookingTutorial/AdvancedEggCooking] to learn how to use templates in your plugins, and make its output look like other Trac pages.
    109109
    110110