Doesn't handle links to family, yet

svn: r17066
This commit is contained in:
Doug Blank 2011-04-06 19:54:53 +00:00
parent c3bc7cd925
commit 168b49d217

View File

@ -6218,6 +6218,9 @@ class NavWebReport(Report):
subdir = "img" subdir = "img"
elif obj_class == "Repository": elif obj_class == "Repository":
subdir = "repo" subdir = "repo"
elif obj_class == "Family":
# FIXME: no family page in NarWeb
return None
else: else:
raise AttributeError("unknown object type '%s'" % obj_class) raise AttributeError("unknown object type '%s'" % obj_class)
return self.build_url_fname(handle, subdir, up) + self.ext return self.build_url_fname(handle, subdir, up) + self.ext