Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Max Rees
APK Vitrine
Commits
5a081e1e
Verified
Commit
5a081e1e
authored
Dec 29, 2020
by
Max Rees
Browse files
Fix a few typos
parent
5c35999f
Changes
1
Hide whitespace changes
Inline
Side-by-side
apkvitrine/cgi.py
View file @
5a081e1e
...
...
@@ -290,12 +290,15 @@ def page_home(app):
app
.
redirect
(
app
.
conf
[
apkvitrine
.
DEFAULT
][
"default_version"
])
return
[]
def
page_notfound
(
app
):
return
app
.
notfound
()
class
APKVitrineApp
:
routes
=
{
"-/versions"
:
page_branches
,
"-/builders"
:
page_builders
,
"*/-/search"
:
page_search
,
"*/*/*"
:
lambda
app
:
notfound
(
app
)
,
"*/*/*"
:
page_
notfound
,
"*/*"
:
page_package
,
"*"
:
page_branch
,
"."
:
page_home
,
...
...
@@ -419,7 +422,7 @@ class APKVitrineApp:
def
ok
(
self
,
**
kwargs
):
self
.
response
(
http
.
HTTPStatus
.
OK
,
**
kwargs
)
def
badreq
(
**
kwargs
):
def
badreq
(
self
,
**
kwargs
):
return
self
.
error
(
http
.
HTTPStatus
.
BAD_REQUEST
,
**
kwargs
)
def
redirect
(
self
,
location
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment