equal
deleted
inserted
replaced
1170 type_ = web.req.qsparams.get('type') |
1170 type_ = web.req.qsparams.get('type') |
1171 allowed = web.configlist("web", "allow-archive") |
1171 allowed = web.configlist("web", "allow-archive") |
1172 key = web.req.qsparams['node'] |
1172 key = web.req.qsparams['node'] |
1173 |
1173 |
1174 if type_ not in webutil.archivespecs: |
1174 if type_ not in webutil.archivespecs: |
1175 msg = 'Unsupported archive type: %s' % type_ |
1175 msg = 'Unsupported archive type: %s' % stringutil.pprint(type_) |
1176 raise ErrorResponse(HTTP_NOT_FOUND, msg) |
1176 raise ErrorResponse(HTTP_NOT_FOUND, msg) |
1177 |
1177 |
1178 if not ((type_ in allowed or |
1178 if not ((type_ in allowed or |
1179 web.configbool("web", "allow" + type_))): |
1179 web.configbool("web", "allow" + type_))): |
1180 msg = 'Archive type not allowed: %s' % type_ |
1180 msg = 'Archive type not allowed: %s' % type_ |