Skip to content

Commit 4985ca1

Browse files
committed
Initial version of trytornado
0 parents  commit 4985ca1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+21683
-0
lines changed

app.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
application: trytornado
2+
version: 2
3+
runtime: python27
4+
api_version: 1
5+
threadsafe: no
6+
7+
handlers:
8+
- url: /.*
9+
script: trytornado.py

templates/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
Copyright, Ang Lee, 2013, All rights reserved.
3+
4+
-->
5+
6+
<!DOCTYPE html>
7+
<html>
8+
<head><title>Python Eval</title></head>
9+
<body>
10+
<form method="post" action="/">
11+
<p>Python code:<br><input type="text" name="code" value="{{code}}" size=100></p>
12+
<input type="submit" value="eval">
13+
</form>
14+
<p>Result:<br><span>{{result}}</span><p>
15+
16+
</body>
17+
</html>

tornado/__init__.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env python
2+
#
3+
# Copyright 2009 Facebook
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6+
# not use this file except in compliance with the License. You may obtain
7+
# a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
# License for the specific language governing permissions and limitations
15+
# under the License.
16+
17+
"""The Tornado web server and tools."""
18+
19+
from __future__ import absolute_import, division, with_statement
20+
21+
# version is a human-readable version number.
22+
23+
# version_info is a four-tuple for programmatic comparison. The first
24+
# three numbers are the components of the version number. The fourth
25+
# is zero for an official release, positive for a development branch,
26+
# or negative for a release candidate (after the base version number
27+
# has been incremented)
28+
version = "2.4.1"
29+
version_info = (2, 4, 1, 0)

tornado/__init__.pyc

416 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)