Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
toolbox
Commits
a749ec92
Commit
a749ec92
authored
Feb 26, 2014
by
Benjamin S Waters
Browse files
fixing merge notes
parent
69c5818f
Changes
2
Hide whitespace changes
Inline
Side-by-side
toolbox/website/__init__.py
View file @
a749ec92
from
flask
import
Flask
from
flask
import
Flask
<<<<<<<
HEAD
website
=
Flask
(
__name__
)
=======
from
flask.ext.sqlalchemy
import
SQLAlchemy
from
flask.ext.sqlalchemy
import
SQLAlchemy
from
flask.ext.admin
import
Admin
from
flask.ext.admin
import
Admin
website
=
Flask
(
__name__
)
website
=
Flask
(
__name__
)
website
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:////database.db'
website
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:////database.db'
admin
=
Admin
(
website
)
admin
=
Admin
(
website
)
>>>>>>>
dev
from
website
import
routes
toolbox/website/routes.py
View file @
a749ec92
...
@@ -8,30 +8,18 @@ SERVICE_URL = "http://129.174.177.239/cgi-bin/pycas.py"
...
@@ -8,30 +8,18 @@ SERVICE_URL = "http://129.174.177.239/cgi-bin/pycas.py"
@
website
.
route
(
'/login'
)
@
website
.
route
(
'/login'
)
def
my_login
():
def
my_login
():
status
,
id
,
cookie
=
pycas
.
login
(
CAS_SERVER
,
SERVICE_URL
,
secure
=
1
,
opt
=
"gateway"
)
status
,
id
,
cookie
=
pycas
.
login
(
CAS_SERVER
,
SERVICE_URL
,
secure
=
1
,
opt
=
"gateway"
)
<<<<<<<
HEAD
return
redirect
(
url_for
(
'home'
))
=======
return
redirect
(
url_for
(
'routes.home'
))
return
redirect
(
url_for
(
'routes.home'
))
>>>>>>>
dev
@
website
.
route
(
'/'
)
@
website
.
route
(
'/'
)
def
home
():
def
home
():
return
render_template
(
'index.html'
)
return
render_template
(
'index.html'
)
<<<<<<<
HEAD
@
website
.
route
(
'/feature-request'
,
method
=
[
'GET'
,
'POST'
])
=======
@
website
.
route
(
'/submit'
,
methods
=
[
'GET'
,
'POST'
])
@
website
.
route
(
'/submit'
,
methods
=
[
'GET'
,
'POST'
])
>>>>>>>
dev
def
process_request
():
def
process_request
():
form
=
FeatureRequestForm
()
form
=
FeatureRequestForm
()
if
form
.
validate_on_submit
():
if
form
.
validate_on_submit
():
flash
(
'Request Successly Submitted'
)
flash
(
'Request Successly Submitted'
)
<<<<<<<
HEAD
return
redirect
(
url_for
(
'home'
))
=======
return
redirect
(
url_for
(
'routes.home'
))
return
redirect
(
url_for
(
'routes.home'
))
>>>>>>>
dev
return
render_template
(
'feature_request.html'
,
title
=
'Request Form'
,
form
=
form
)
return
render_template
(
'feature_request.html'
,
title
=
'Request Form'
,
form
=
form
)
Write
Preview
Markdown
is supported
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