5905: Links (other than internet) in Notes don't work in NAVWEB; don't crash and handle Family

svn: r19974
This commit is contained in:
Doug Blank 2012-07-10 17:04:15 +00:00
parent 4b09c581d8
commit f8b0cde0bd

View File

@ -7498,10 +7498,10 @@ class NavWebReport(Report):
elif obj_class == "Repository":
subdir = "repo"
elif obj_class == "Family":
# FIXME: no family page in NarWeb
return None
subdir = "fam"
else:
raise AttributeError("unknown object type '%s'" % obj_class)
print ("unknown object type '%s'" % obj_class)
return None
return self.build_url_fname(handle, subdir, up) + self.ext
def build_url_fname(self, fname, subdir = None, up = False):