summaryrefslogtreecommitdiff
path: root/cgi-bin/whisper.py
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-13 21:53:49 +0800
committerchai <chaifix@163.com>2018-07-13 21:53:49 +0800
commit7ca80e57f06922e464626c7a6a1d7965e716b53f (patch)
treebda9271234720424b7dfc5c2d25b9df4ba3d01df /cgi-bin/whisper.py
parent181b206863d3765fe5343ceea8e1e00e52ffba9e (diff)
Diffstat (limited to 'cgi-bin/whisper.py')
-rw-r--r--cgi-bin/whisper.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/cgi-bin/whisper.py b/cgi-bin/whisper.py
deleted file mode 100644
index aec20b6..0000000
--- a/cgi-bin/whisper.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import path
-from path import Path
-import connect
-from connect import Connect
-
-whisper_file = open(Path.template("whisper.html"), 'r', encoding="utf8")
-whisper_templ = whisper_file.read()
-whisper_file.close()
-
-class Whisper(object):
- def build(_id, _content, _date, _odd, _url):
- whisper = whisper_templ.format(\
- oddoreven=((_odd == True) and "odd" or "even"),\
- content=_content,\
- date=_date,\
- url=_url,\
- id=_id\
- )
- return whisper