Hide
Siafoo – the intersection of pastebin, help desk, version control, and social networking Join Siafoo Now or Learn More

Pass arbitrary options from conf.ini to templates in Trac

Revision 3 vs. Revision 4

Changelog: Changed infos to point to version 1.0, easy_install-ability and trac-hacks pages.

Legend:

Unmodified
Added
Removed
  • Description

    r3 r4  
    2929  
    3030This will pass a 'projects' list to your list page, the same list that is passed to each regular Trac page as described above.  
    3131  
    3232Download  
    3333--------  
    34 For the time being, you can `download the entire plugin <http://crew.icapsid.net/david/downloads/projects/tracarbitraryoptionsplugin.tar.bz2>`_.  
     34You can download the entire plugin  
     35For the time being, you can `download the entire plugin <http://trac-hacks.org/changeset/latest/arbitraryoptionsplugin?old_path=/&filename=arbitraryoptionsplugin&format=zip>`_ or `check it out from SVN <http://trac-hacks.org/svn/arbitraryoptionsplugin>`_.  
     36  
     37You can also just run ``easy_install TracArbitraryOptionsPlugin``.  
    3538  
    3639Build  
    3740-----  
    3841Or, you can build it.  Here's the setup.py I've used:  
    3942  
     
    4346     
    4447    from setuptools import setup, find_packages  
    4548     
    4649    setup(  
    4750        name='TracArbitraryOptionsPlugin',  
    48         version='0.1',  
     51        version='1.0',  
    4952        packages=find_packages(),  
    5053        author='David Isaacson',  
    5154        author_email='david@icapsid.net',  
    5255        description='Allows arbitrary options to be added to configuration files and accessed via the templates.  Allows data from all projects to be accessed in each.',  
    5356        url='http://projects.icapsid.net/',  
     57        license='Modified BSD',  
    5458        entry_points = {  
    5559            'trac.plugins': [  
    5660                'plugin = tracarbitraryoptions'  
    5761            ]  
    5862        }  
     
    6165Just create a folder hierarchy with:  
    6266  
    6367    * setup.py  
    6468    * tracarbitraryoptions  
    6569        * __init__.py (contains only ``from arbitrary_options import *``)  
    66         * arbitrary_options.py (this snippet). 
     70        * arbitrary_options.py (this snippet).  
     71  
     72`Browse the entire project <http://trac-hacks.org/browser/arbitraryoptionsplugin>`_  
     73  
     74`More information <http://trac-hacks.org/wiki/ArbitraryOptionsPlugin>`_