code: def _x_get_physical_path(self):
          
          path = self.context.getPath()
          portal_path = api.get_path(api.get_portal())
          if portal_path not in path:
              return "{}/{}".format(portal_path, path)
          return path
docs: Generate the physical path