equal
deleted
inserted
replaced
90 cmd = req.form.get('cmd', [''])[0] |
90 cmd = req.form.get('cmd', [''])[0] |
91 if cmd and cmd in protocol.__all__: |
91 if cmd and cmd in protocol.__all__: |
92 if cmd in perms and not self.check_perm(req, perms[cmd]): |
92 if cmd in perms and not self.check_perm(req, perms[cmd]): |
93 return |
93 return |
94 method = getattr(protocol, cmd) |
94 method = getattr(protocol, cmd) |
95 method(self, req) |
95 method(self.repo, req) |
96 return |
96 return |
97 |
97 |
98 # work with CGI variables to create coherent structure |
98 # work with CGI variables to create coherent structure |
99 # use SCRIPT_NAME, PATH_INFO and QUERY_STRING as well as our REPO_NAME |
99 # use SCRIPT_NAME, PATH_INFO and QUERY_STRING as well as our REPO_NAME |
100 |
100 |