OSDN Git Service

重要なコミット:env flexの使用が課金対象になっているのでpytnon27に変更
[pybbs/pybbs.git] / index.py
index 7a0a28d..fabcc7c 100755 (executable)
--- a/index.py
+++ b/index.py
@@ -140,12 +140,14 @@ class RegistHandler(tornado.web.RequestHandler):
             i += len(line)
             text = text+'<p>'+self.link(line)+'<br></p>'
         pw = self.get_argument('password')
-        if sub == '':
-            sub = u'タイトルなし.'
         if i == 0:
             error = error + u'本文がありません.'
         elif i > 1000:
             error = error +u'文字数が1,000をこえました.'
+        if na == '':
+            na = u'誰かさん'
+        if sub == '':
+            sub = u'タイトルなし.'
         article = self.application.db.table(dbname)
         if len(article) == 0:
             no = 1