Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hexang_web
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kai Lee
hexang_web
Commits
ea5a40f8
Commit
ea5a40f8
authored
5 years ago
by
ktongxue2018
Browse files
Options
Downloads
Patches
Plain Diff
modified: app/views.py
parent
1b11ccbd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.idea/workspace.xml
+54
-64
54 additions, 64 deletions
.idea/workspace.xml
app/views.py
+6
-4
6 additions, 4 deletions
app/views.py
with
60 additions
and
68 deletions
.idea/workspace.xml
+
54
−
64
View file @
ea5a40f8
...
...
@@ -2,11 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"ce95be28-16fc-41cd-8c98-36369485281e"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/models.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/models.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/static/reset.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/static/reset.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/static/set_pwd.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/static/set_pwd.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/run.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/views.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/views.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -24,22 +20,23 @@
<session
id=
"164935010"
>
<usages-collector
id=
"statistics.lifecycle.project"
>
<counts>
<entry
key=
"project.closed"
value=
"
2
"
/>
<entry
key=
"project.closed"
value=
"
3
"
/>
<entry
key=
"project.open.time.0"
value=
"1"
/>
<entry
key=
"project.open.time.4"
value=
"1"
/>
<entry
key=
"project.open.time.5"
value=
"1"
/>
<entry
key=
"project.opened"
value=
"
2
"
/>
<entry
key=
"project.opened"
value=
"
3
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<counts>
<entry
key=
"html"
value=
"2"
/>
<entry
key=
"py"
value=
"
4
8"
/>
<entry
key=
"py"
value=
"8
6
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"HTML"
value=
"2"
/>
<entry
key=
"Python"
value=
"
4
8"
/>
<entry
key=
"Python"
value=
"8
6
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.open"
>
...
...
@@ -59,17 +56,17 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/set_pwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
342
"
>
<state
relative-caret-position=
"
513
"
>
<caret
line=
"27"
column=
"58"
selection-start-line=
"27"
selection-end-line=
"27"
selection-end-column=
"58"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/app/views.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
741
"
>
<caret
line=
"
43
"
column=
"3
0
"
selection-start-line=
"
43
"
selection-start-column=
"3
0
"
selection-end-line=
"
43
"
selection-end-column=
"3
0
"
/>
<state
relative-caret-position=
"
199
"
>
<caret
line=
"
19
"
column=
"3
2
"
selection-start-line=
"
19
"
selection-start-column=
"3
2
"
selection-end-line=
"
19
"
selection-end-column=
"3
2
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -81,7 +78,7 @@
<entry
file=
"file://$PROJECT_DIR$/run.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"57"
>
<caret
line=
"3"
column=
"31"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"31"
selection-end-line=
"3"
selection-end-column=
"31"
/>
<caret
line=
"3"
column=
"31"
selection-start-line=
"3"
selection-start-column=
"31"
selection-end-line=
"3"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
...
...
@@ -89,7 +86,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/reset.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
140
"
>
<state
relative-caret-position=
"
7999
"
>
<caret
line=
"421"
column=
"262"
selection-start-line=
"421"
selection-start-column=
"262"
selection-end-line=
"421"
selection-end-column=
"262"
/>
</state>
</provider>
...
...
@@ -98,19 +95,15 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/reg.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
5452
"
>
<caret
line=
"647"
column=
"36"
lean-forward=
"true"
selection-start-line=
"647"
selection-start-column=
"36"
selection-end-line=
"647"
selection-end-column=
"36"
/>
<state
relative-caret-position=
"
12293
"
>
<caret
line=
"647"
column=
"36"
selection-start-line=
"647"
selection-start-column=
"36"
selection-end-line=
"647"
selection-end-column=
"36"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/mail_set_passwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<caret
lean-forward=
"true"
/>
</state>
</provider>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
...
...
@@ -118,7 +111,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/mail_reset_passwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
...
...
@@ -135,7 +128,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/models.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
152
"
>
<state
relative-caret-position=
"
76
"
>
<caret
line=
"8"
column=
"35"
selection-start-line=
"8"
selection-start-column=
"35"
selection-end-line=
"8"
selection-end-column=
"35"
/>
<folding>
<element
signature=
"e#0#61#0"
expanded=
"true"
/>
...
...
@@ -174,19 +167,19 @@
<option
value=
"$PROJECT_DIR$/app/__init__.py"
/>
<option
value=
"$PROJECT_DIR$/instance/config.py"
/>
<option
value=
"$PROJECT_DIR$/test.py"
/>
<option
value=
"$PROJECT_DIR$/app/views.py"
/>
<option
value=
"$PROJECT_DIR$/run.py"
/>
<option
value=
"$PROJECT_DIR$/app/models.py"
/>
<option
value=
"$PROJECT_DIR$/app/static/set_pwd.html"
/>
<option
value=
"$PROJECT_DIR$/app/static/reset.html"
/>
<option
value=
"$PROJECT_DIR$/app/views.py"
/>
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"-10"
/>
<option
name=
"y"
value=
"-10"
/>
<option
name=
"width"
value=
"19
39
"
/>
<option
name=
"height"
value=
"1
099
"
/>
<option
name=
"width"
value=
"19
40
"
/>
<option
name=
"height"
value=
"1
100
"
/>
</component>
<component
name=
"ProjectView"
>
<navigator
proportions=
""
version=
"1"
>
...
...
@@ -356,6 +349,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-7"
y=
"-7"
width=
"1550"
height=
"878"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.17701453"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
...
...
@@ -438,16 +432,30 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/
views.py
"
>
<entry
file=
"file://$PROJECT_DIR$/app/
static/set_pwd.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"741"
>
<caret
line=
"43"
column=
"30"
selection-start-line=
"43"
selection-start-column=
"30"
selection-end-line=
"43"
selection-end-column=
"30"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"513"
>
<caret
line=
"27"
column=
"58"
selection-start-line=
"27"
selection-end-line=
"27"
selection-end-column=
"58"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/reset.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"7999"
>
<caret
line=
"421"
column=
"262"
selection-start-line=
"421"
selection-start-column=
"262"
selection-end-line=
"421"
selection-end-column=
"262"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/reg.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"12293"
>
<caret
line=
"647"
column=
"36"
selection-start-line=
"647"
selection-start-column=
"36"
selection-end-line=
"647"
selection-end-column=
"36"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/mail_set_passwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
...
...
@@ -456,7 +464,7 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/models.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
152
"
>
<state
relative-caret-position=
"
76
"
>
<caret
line=
"8"
column=
"35"
selection-start-line=
"8"
selection-start-column=
"35"
selection-end-line=
"8"
selection-end-column=
"35"
/>
<folding>
<element
signature=
"e#0#61#0"
expanded=
"true"
/>
...
...
@@ -464,45 +472,27 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/run.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"57"
>
<caret
line=
"3"
column=
"31"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"31"
selection-end-line=
"3"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/set_pwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"342"
>
<caret
line=
"27"
column=
"58"
selection-start-line=
"27"
selection-end-line=
"27"
selection-end-column=
"58"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/reset.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"140"
>
<caret
line=
"421"
column=
"262"
selection-start-line=
"421"
selection-start-column=
"262"
selection-end-line=
"421"
selection-end-column=
"262"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/static/reg.html"
>
<entry
file=
"file://$PROJECT_DIR$/app/static/mail_reset_passwd.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5452"
>
<caret
line=
"647"
column=
"36"
lean-forward=
"true"
selection-start-line=
"647"
selection-start-column=
"36"
selection-end-line=
"647
"
selection-end-column=
"
36
"
/>
<state>
<caret
column=
"2"
selection-start-column=
"2
"
selection-end-column=
"
2
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
app/static/mail_set_passwd.html
"
>
<entry
file=
"file://$PROJECT_DIR$/
run.py
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<caret
l
ean-forward=
"true
"
/>
<state
relative-caret-position=
"57"
>
<caret
l
ine=
"3"
column=
"31"
selection-start-line=
"3"
selection-start-column=
"31"
selection-end-line=
"3"
selection-end-column=
"31
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/
static/mail_reset_passwd.html
"
>
<entry
file=
"file://$PROJECT_DIR$/app/
views.py
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<caret
column=
"2"
selection-start-column=
"2"
selection-end-column=
"2"
/>
<state
relative-caret-position=
"199"
>
<caret
line=
"19"
column=
"32"
selection-start-line=
"19"
selection-start-column=
"32"
selection-end-line=
"19"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
This diff is collapsed.
Click to expand it.
app/views.py
+
6
−
4
View file @
ea5a40f8
...
...
@@ -11,11 +11,13 @@ def reg_user():
return
send_file
(
'
./static/reg.html
'
)
elif
request
.
method
==
"
POST
"
:
user_input
=
request
.
form
u
=
User
(
user_input
)
u
.
creat_ldap_account
(
l
)
return
redirect
(
'
/cas/
'
)
try
:
u
=
User
(
user_input
)
u
.
creat_ldap_account
(
l
)
return
redirect
(
'
/cas/
'
)
except
:
return
"
Error input
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment