postgres formencode.api.Invalid

错误提示:

Invalid: expected an int in the IntCol 'geom', got <type 'str'> '010100000007EBFFFC3A611941C71000DC148C0141' instead

 

改正

位置:/usr/local/lib/python2.7/dist-packages/SQLObject-3.0.0a1dev_20150327-py2.7.egg/sqlobject/postgres/pgconnection.py

定位到:def guessClass(self, t):

加上:t = str(t).lower()

 

posted @ 2015-07-22 14:46  jihite  阅读(377)  评论(0编辑  收藏  举报