bug fix: ignore target (and metadata) if view is not a node view, e.g. when in the management interface

This commit is contained in:
Helmut Merz 2012-02-10 18:13:28 +01:00
parent 86da0990e1
commit 0a6ba7bab1

View file

@ -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: