Changes between Version 8 and Version 9 of TracPlugins

Show
Ignore:
Author:
anonymous (IP: 189.159.117.105)
Timestamp:
09/19/2009 08:56:26 PM (1 year ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v1 v9  
     1 
    12 
    23 
    1516To use plugins in Trac, you need to have [http://peak.telecommunity.com/DevCenter/setuptools setuptools] (version 0.6) installed. 
    1617 
    17 To install `setuptools`, download the bootstrap module [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py] and execute it as follows: 
    18 {{{ 
    19 $ python ez_setup.py 
    20 }}} 
    21  
    22 If the `ez_setup.py` script fails to install the setuptools release, you can download it from [http://www.python.org/pypi/setuptools PyPI] and install it manually. 
    23  
    24 == Installing a Trac Plugin == 
    25  
    26 === For a Single Project === 
    27  
    28 Plugins are packaged as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs]. That means they are ZIP archives with the file extension `.egg`. If you have downloaded a source distribution of a plugin, you can run: 
    29 {{{ 
    30 $ python setup.py bdist_egg 
    31 }}} 
    32 to build the `.egg` file. 
    33  
    34 Once you have the plugin archive, you need to copy it into the `plugins` directory of the [wiki:TracEnvironment project environment]. Also, make sure that the web server has sufficient permissions to read the plugin egg. 
    35  
    36 === For All Projects === 
    37  
    38 Plugins that you want to use in all your projects (such as [http://projects.edgewall.com/trac/wiki/WebAdmin WebAdmin]) can be installed globally by running: 
    39 {{{ 
    40 $ python setup.py install 
    41 }}} 
    42  
    43 Alternatively, you can just drop the `.egg` file in the Python `site-packages` directory. 
    44  
    45 Unlike plugins installed per-environment, you'll have to explicitly enable globally installed plugins via [wiki:TracIni trac.ini]. This is done in the `[components]` section of the configuration file, for example: 
    46 {{{ 
    47 [components] 
    48 webadmin.* = enabled 
    49 }}} 
    50  
    51 The name of the option is the Python package of the plugin. This should be specified in the documentation of the Plugin, but can also be easily find out by looking at the source (look for a top-level directory that contains a file named `__init__.py`.) 
    52  
    53 == Setting up the Plugin Cache == 
    54  
    55 Some plugins will need to be extracted by the Python eggs runtime (`pkg_resources`), so that their contents are actual files on the file system. The directory in which they are extracted defaults to the home directory of the current user, which may or may not be a problem. You can however override the default location using the `PYTHON_EGG_CACHE` environment variable. 
    56  
    57 To do this from the Apache configuration, use the `SetEnv` directive as follows: 
    58 {{{ 
    59 SetEnv PYTHON_EGG_CACHE /path/to/dir 
    60 }}} 
    61  
    62 This works whether your using the [wiki:TracCgi CGI] or the [wiki:TracModPython mod_python] front-end. Put this directive next to where you set the path to the [wiki:TracEnvironment Trac environment], i.e. in the same `<Location>` block. 
    63  
    64 For example (for CGI): 
    65 {{{ 
    66  <Location /trac> 
    67    SetEnv TRAC_ENV /path/to/projenv 
    68    SetEnv PYTHON_EGG_CACHE /path/to/dir 
    69  </Location> 
    70 }}} 
    71  
    72 or (for mod_python): 
    73 {{{ 
    74  <Location /trac> 
    75    SetHandler mod_python 
    76    ... 
    77    SetEnv PYTHON_EGG_CACHE /path/to/dir 
    78  </Location> 
    79 }}} 
    80  
    81 For [wiki:TracFastCgi FastCGI], you'll need to `-initial-env` option, or whatever is provided by your web server for setting environment variables. 
    82  
    83 ---- 
    84 See also TracGuide, [http://projects.edgewall.com/trac/wiki/PluginList plugin list], [http://projects.edgewall.com/trac/wiki/TracDev/ComponentArchitecture component architecture]My thesis is that all great minds are self-taught, and that the right  
    85 kind of college can be a great place to teach yourself things. 
    86      -- Bryan Bibb 
    87 http://compraviagraitalia.com/ 
    88  [http://compraviagraitalia.com/it/item/generic_cialis.html cialis italia] [http://compraviagraitalia.com/it/item/generic_cialis.html compra cialis online] 
    89 [http://www.compraviagraitalia.com/it/item/generic_viagra.html viagra generico italia] 
    90 http://relievepain.org/tramadol-news/index.php?entry=entry090305-074124 
    91 http://headachetreatment.net/fioricet-online/index.php?entry=entry081207-210429 
    92 [http://compraviagraitalia.com/notizie/index.php ordina viagra e cialis] 
    93 [http://compraviagraitalia.com/notizie/index.php?entry=entry090310-073721 viagra italia] [http://headachetreatment.net/fioricet_faq.html fioricet headache treatment] 
    94 [http://headachetreatment.net/fioricet-online/index.php?entry=entry081207-210429 fioricet com] [http://relievepain.org/ tramadol] 
    95 [http://relievepain.org/tramadol-news/index.php?entry=entry090227-204549 tramadol online pain] 
    96  Snoopy: No problem is so big that it can't be run away from. 
    97 http://compraviagraitalia.com/it/item/generic_viagra_st.html 
    98  [http://www.compraviagraitalia.com/it/item/generic_viagra_st.html cialis postepay] [http://www.compraviagraitalia.com/ cialis generico] 
    99 [http://compraviagraitalia.com/it/item/generic_viagra.html vendita viagra generico originale] 
    100 http://relievepain.org/ 
    101 http://headachetreatment.net/ 
    102 [http://compraviagraitalia.com/notizie/index.php?entry=entry090110-073409 acquista viagra online] 
    103 [http://compraviagraitalia.com/notizie/index.php?entry=entry080309-113154 vendita viagra online] [http://headachetreatment.net/fioricet-online/index.php?entry=entry090307-204557 fioricet net] 
    104 [http://www.headachetreatment.net/index.html buy fioricet sweden] [http://relievepain.org/tramadol-news/index.php?entry=entry090127-135105 buy cheap tramadol online] 
    105 [http://relievepain.org/faq.html tramadol] 
    106  Star Trek Lives! 
    107 http://www.compraviagraitalia.com/it/item/cialis.html 
    108  [http://www.compraviagraitalia.com/it/item/cialis.html dove comprare cialis generico] 
    109 [http://compraviagraitalia.com/it/item/generic_viagra.html viagra] 
    110 http://relievepain.org/index.html 
    111 http://buycialis.cc 
    112 http://headachetreatment.net/index.html 
    113 l/kNg1L [http://www.compraviagraitalia.com viagra compra in maniera sicura] 
    114 [http://www.headachetreatment.net fioricet side effects] [http://buycialis.cc/ order cialis] 
    115 WJLOriN [http://www.relievepain.org/ prices tramadol] 
    116   
    117 I'm used to seeing people promoted ahead of me -- friends, co-workers,  
    118 Tibor.  I never thought it'd be my own wife. 
    119  
    120                 -- Homer Simpson 
    121                    Marge Gets A Job 
    122 http://forum.studenti.it/members/compraviagraonline.html 
    123  [http://lasuperdirectory.altervista.org/single.php?id=352 ordine cialis per impotenza] 
    124 [http://compraviagraitalia.com/it/item/generic_viagra.html viagra generico italia] 
    125 http://www.relievepain.org/ 
    126 http://buycialis.cc 
    127 http://headachetreatment.net/fioricet-online/index.php?entry=entry081207-210429 
    128 qtQu8p9 [http://compraviagraitalia.com compra viagra] 
    129 [http://headachetreatment.net/fioricet-online/index.php?entry=entry090307-210321 fioricet online] [http://buycialis.cc/index.html cialis] 
    130 DX1a3X3 [http://relievepain.org/ buy tramadol] 
    131   Fry: Hey, I don't see you planning for your old age. 
    132  Bender: I got plans. I'm gonna turn my on/off switch to off. 
    133 http://compraviagraitalia.com/it/item/viagra.html 
    134  [http://buycialis.cc/ cialis] 
    135 [http://compraviagraitalia.com/it/item/generic_cialis.html comprare cialis generico] 
    136 [http://compraviagraitalia.com/it/item/generic_viagra.html acquista viagra generico italia] 
    137 http://www.dogomania.com/forum/showthread.php?p=276144 
    138 http://www.maclife.com/user/buy_cialis_com 
    139 http://riereta.net/moodle/user/view.php?id=4164&course=1 
    140 http://www.chiefdelphi.com/forums/member.php?u=33362 
    141 CLM.KmM [http://www.rattidellasabina.it/forums/index.php?showuser=2181 acquisto levitra] 
    142 [http://riereta.net/moodle/user/view.php?id=4164&course=1 fioricet side effects] [http://www.fuel.tv/buycialisonline/ buy ingredients in Cialis hcl] 
    143 /r7xs6O [http://relievepain.org/ tramadol online pain] 
    144  <jforman|work> vapier: dont ever call me daddy unless you have a wad of  
    145  cash to give me 
    146 <vapier> i got a wad of something for you 
    147 [http://www.dogomania.com/forum/showthread.php?p=279776 buy cialis] 
    148 [http://www.sims99.com/forum/member.php?u=9416&buy-viagra-online order viagra] 
    149 http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=cialis-levitra 
    150 http://community.tasteofhome.com/members/BuyViagra/default.aspx 
    151 [http://buylevitra.gather.com/ order levitra online] 
    152 [http://www.folkd.com/user/tramadolonline tramadol buy] 
    153 FCUthk7 
    154 http://subscene.com/members/Buy_2D00_levitra_2D00_online.aspx 
    155 http://buytramadol.gather.com/ 
    156 [http://www.sims99.com/forum/member.php?u=9417&fioricet fioricet where to order] 
    157 [http://buycialis.cc/it/item/viagra.html viagra prezzi] 
    158 http://buycialisonline.tv/product.php?prod=butalbital 
    159 http://lasuperdirectory.altervista.org/single.php?id=352 
    160 Talking much about oneself can also be a means to conceal oneself. 
    161                 -- Friedrich Nietzsche 
    162 http://www.svibrescia.it/jforum/user/profile/129.page 
    163  [http://buycialisonline.tv/product.php?prod=cialis cialis rx] 
    164 [http://www.cittaeducativa.roma.it/moodle/user/view.php?id=2744&compra-viagra-cialis compra cialis italia] 
    165 [http://www.warrock.it/forum/index.php?showuser=59718?Viagra-Cialis-Levitra viagra generico] 
    166 [http://compracialis.it/it/item/generic_propecia.html acquisto propecia] 
    167 http://buycialis.cc/it/item/generic_propecia.html 
    168 http://www.folkd.com/user/tramadolonline 
    169 http://www.jaman.com/people/BuyCialis/ 
    170 http://www.aboutus.org/HeadacheTreatment.net 
    171 http://www.aboutus.org/BuyCialis.cc 
    172 iwzfuyb [http://compraviagra.blog.espresso.repubblica.it/compra_viagra_e_cialis/ cialis online e viagra online] 
    173 [http://www.sims99.com/forum/member.php?u=9417&fioricet fioricet buy online] [http://www.ourmedia.org/channels/buy-cialis generic Cialis] 
    174 DkKrZD1 [http://buytramadol.gather.com/ tramadol medication] 
    175   
     18To install `setuptools`, download the bootstrap module [http://peak.telecommunity.com/dist%2