Jun Omae avatar Jun Omae committed d39f60b

1.0.2dev: follow-ups to r11745, adds missing `.zip` to the file name of zip download from changeset page and removed undefined `self` in `render_zip` utility function

Comments (0)

Files changed (2)


             if format == 'diff':
                 self._render_diff(req, filename, repos, data)
             elif format == 'zip':
-                render_zip(req, filename, repos, None,
+                render_zip(req, filename + '.zip', repos, None,
                            partial(self._zip_iter_nodes, req, repos, data))
         # -- HTML format


         zipinfo = ZipInfo()
         path = node.path.strip('/')
-        if not path.startswith(root_path):
-            self.log.debug('path=%r, root_path=%r', path, root_path)
         assert path.startswith(root_path)
         # The general purpose bit flag 11 is used to denote
         # UTF-8 encoding for path and comment. Only set it for
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.