Skip to content

Commit

Permalink
portalMaster in get_conf_blob
Browse files Browse the repository at this point in the history
svn path=/ZMS/branches/zms4/; revision=5826
  • Loading branch information
zmsdev committed Aug 25, 2020
1 parent 1e8d3d2 commit d2d2d3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Products/zms/zmsobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,9 @@ def get_conf_blob(self, path, REQUEST, RESPONSE):
RESPONSE.setHeader( 'Content-Disposition', 'inline;filename="%s"'%v.getFilename())
v = v.getData()
except:
masterId = self.getConfProperty('Portal.Master', '')
if len(masterId) > 0:
masterHome = getattr(self.getHome(), masterId)
masterDocElmnt = masterHome.content
v = masterDocElmnt.get_conf_blob(path, REQUEST, RESPONSE)
portalMaster = self.getPortalMaster()
if portalMaster is not None:
v = portalMaster.get_conf_blob(path, REQUEST, RESPONSE)
else:
standard.writeError(self, "[get_conf_blob]: path=%s"%str(path))
return v
Expand Down

0 comments on commit d2d2d3f

Please sign in to comment.