Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F8C8D870 for ; Mon, 11 Feb 2013 10:01:54 +0000 (UTC) Received: (qmail 86844 invoked by uid 500); 11 Feb 2013 10:01:53 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 86448 invoked by uid 500); 11 Feb 2013 10:01:52 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 86406 invoked by uid 99); 11 Feb 2013 10:01:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 10:01:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 10:01:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 370E623889DE; Mon, 11 Feb 2013 10:01:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1444702 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Date: Mon, 11 Feb 2013 10:01:31 -0000 To: bloodhound-commits@incubator.apache.org From: andrej@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130211100131.370E623889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: andrej Date: Mon Feb 11 10:01:30 2013 New Revision: 1444702 URL: http://svn.apache.org/r1444702 Log: #379 fix error when data is None Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1444702&r1=1444701&r2=1444702&view=diff ============================================================================== --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original) +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Feb 11 10:01:30 2013 @@ -258,7 +258,7 @@ class BloodhoundTheme(ThemeBase): modifier = getattr(self, modifier) modifier(req, template, data, content_type, is_active_theme) - if is_active_theme: + if is_active_theme and data is not None: data['responsive_layout'] = self.env.config.getbool( 'bloodhound', 'responsive_layout', 'true')