GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — asyn · houweilei/StarterLearningPython@bf7d05e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • 3code/web
    • application.pyc
    • handlers
      • sleep.pyc
      • sleep.py
    • templates
      • see.html
      • sleep.html
    • url.pyc
    • url.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎3code/web/application.pyc‎

Copy file name to clipboard
0 Bytes
Binary file not shown.
Collapse file

‎3code/web/handlers/sleep.py‎

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
4+
from base import BaseHandler
5+
6+
import time
7+
8+
class SleepHandler(BaseHandler):
9+
def get(self):
10+
time.sleep(17)
11+
self.render("sleep.html")
12+
13+
class SeeHandler(BaseHandler):
14+
def get(self):
15+
self.render("see.html")
Collapse file

‎3code/web/handlers/sleep.pyc‎

Copy file name to clipboard
1.06 KB
Binary file not shown.
Collapse file

‎3code/web/templates/see.html‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block header %}
4+
<h2>I hope see you just now.</h2>
5+
{% end %}
6+
7+
{% block body %}
8+
{% end %}
Collapse file

‎3code/web/templates/sleep.html‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block header %}
4+
<h2>I am sleeping in 7s.</h2>
5+
{% end %}
6+
7+
{% block body %}
8+
<p>Please waiting</p>
9+
{% end %}
Collapse file

‎3code/web/url.py‎

Copy file name to clipboardExpand all lines: 3code/web/url.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111
from handlers.index import ErrorHandler
1212
from handlers.index import RegisterHandler
1313
from handlers.user import UserHandler
14+
from handlers.sleep import SleepHandler
15+
from handlers.sleep import SeeHandler
1416

1517
url = [
1618
(r'/', IndexHandler),
1719
(r'/error', ErrorHandler),
1820
(r'/login', RegisterHandler),
1921
(r'/user', UserHandler),
22+
(r'/sleep', SleepHandler),
23+
(r'/see', SeeHandler),
2024
]
Collapse file

‎3code/web/url.pyc‎

Copy file name to clipboard
149 Bytes
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.