Mercurial > bitten > bitten-test
changeset 431:11658e4af0cc
Require WebAdmin plugin to ensure the plugin is loaded before Bitten.
author | cmlenz |
---|---|
date | Tue, 14 Aug 2007 22:45:09 +0000 |
parents | c85dcf71e28e |
children | 74c51f648466 |
files | bitten/admin.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/admin.py +++ b/bitten/admin.py @@ -9,10 +9,15 @@ """Implementation of the web administration interface.""" +from pkg_resources import require import re from trac.core import * -from webadmin.web_ui import IAdminPageProvider +try: + require("TracWebAdmin") + from webadmin.web_ui import IAdminPageProvider +except ImportError: + IAdminPageProvider = None from bitten.model import BuildConfig, TargetPlatform from bitten.recipe import Recipe