bindiry
V2EX  ›  问与答

bug一个,在首页向世界提问框中输入文字如果有分段,就会出错。

  •  
  •   bindiry · Mar 16, 2011 · 4441 views
    This topic created in 5561 days ago, the information mentioned may be changed or developed.
    2 replies    1970-01-01 08:00:00 +08:00
    luo123qiu
        1
    luo123qiu  
       Mar 16, 2011
    提交后显示的:
    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 517, in __call__
    handler.post(*groups)
    File "/base/data/home/apps/v2ex/1.348987195219245336/topic.py", line 265, in post
    topic.title = topic_title
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 544, in __set__
    value = self.validate(value)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 2437, in validate
    raise BadValueError('Property %s is not multi-line' % self.name)
    BadValueError: Property title is not multi-line
    darasion
        2
    darasion  
       Mar 16, 2011
    嗯。这bug存在很长时间了。。

    StringProperty没开启multiline造成的。

    其实可以保存之前过滤一下换行什么的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:55 · PVG 13:55 · LAX 22:55 · JFK 01:55
    ♥ Do have faith in what you're doing.