From 0a6ba7bab1ce6582a67a9dd4ad98c93d833c7209 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 10 Feb 2012 18:13:28 +0100 Subject: [PATCH] bug fix: ignore target (and metadata) if view is not a node view, e.g. when in the management interface --- browser/skin/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/skin/controller.py b/browser/skin/controller.py index 29418cf..f9e4a85 100644 --- a/browser/skin/controller.py +++ b/browser/skin/controller.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2011 Helmut Merz helmutm@cy55.de +# Copyright (c) 2012 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ class Controller(BaseController): def setupMetadata(self): macros = self.macros - target = self.view.virtualTarget + target = getattr(self.view, 'virtualTarget', None) if target is not None: desc = target.dcDescription if desc: