OSDN Git Service

darekasan useing
[pybbs/pybbs.git] / index.py
index 7a0a28d..0f2071b 100755 (executable)
--- a/index.py
+++ b/index.py
@@ -123,8 +123,8 @@ class RegistHandler(tornado.web.RequestHandler):
         rec = self.application.db.get(where('kinds') == 'conf')
         words = rec['bad_words']
         out = rec['out_words']
-        na = self.get_argument('name')
-        sub = self.get_argument('title')
+        na = self.get_argument('name',u'誰かさん')
+        sub = self.get_argument('title',u'タイトルなし')
         com = self.get_argument('comment')
         text = ''
         i = 0
@@ -140,8 +140,6 @@ 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: