This is an archived repository: I do not use this code anymore and I won't spend time on development/maintenance. Maybe code from this repo will be useful to someone - feel free to copy what you need (MIT license).
Ohloh Widgets Macro
Ohloh has some nice widgets which you can put on your site to show some statistics about your project. This software is about a Trac macro to make embedding these widgets in your trac wiki easy and does not force you to lower trac's security settings. Also this macro has a special API so you can modify any Ohloh widget so it blends in better with your layout.
The whole code is licensed under the very liberal MIT license so you can use it in your own code without problems.
Also you can display a group of widgets together:
[[OhlohWidgetGroup(483602, project_basic_stats, project_factoids, project_users?style=green)]]
This has the advantage that all widgets are grouped in a div so you can style it easily. For example the widget list on the left side of this page is a widget group with some custom
Enable the macro in your trac.ini:
[components] ohloh_widgets.macro = enabled # if you want to have better display of certain macros, enable also widget modificators: ohloh_widgets.* = enabled
Dependencies and Compatibility
- Python 2.3-2.6
- Trac 0.11 or 0.12