--> --> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.3: /usr/bin/python
Fri Apr 18 12:25:21 2014

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/quango/blog/comment.cgi in ()
    430         print 'Bad request - only GET and POST supported'
    431     return
    432 
    433 if __name__ == '__main__':
=>  434     main()
main = <function main>
 /home/quango/blog/comment.cgi in main()
    415     if not entryid:
    416         if reqmeth == 'GET':
=>  417             comments_feed()
    418         else:
    419             print 'Status: 400\nContent-Type: text/plain'
global comments_feed = <function comments_feed>
 /home/quango/blog/comment.cgi in comments_feed(entryid=None)
    339                        "comments.visible AND content.visible "
    340                        "ORDER BY added DESC LIMIT %d" % blog.DEFLIMIT)
=>  341     R = db_row.MetaRow(cursor.description)
    342     comments = [R(row) for row in cursor.fetchall()]
    343 
R undefined, global db_row = <module 'db_row' from '/home/quango/blog/db_row.pyc'>, db_row.MetaRow = <class 'db_row.MetaRow'>, cursor = <cursor object at 0x906b4dc; closed: 0>, cursor.description = (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None))
 /home/quango/blog/db_row.py in __new__(cls=<class 'db_row.MetaRow'>, fields=(Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), driver=None)
    669 
    670     field_dict['__fields__'] = tuple(field_names)
=>  671     field_class = type('fields', (cls.field_base,), field_dict)
    672 
    673     row_dict = {}
field_class undefined, builtin type = <type 'type'>, cls = <class 'db_row.MetaRow'>, cls.field_base = <class 'db_row.Fields'>, field_dict = {'__fields__': (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), '__slots__': ()}
 /home/quango/blog/db_row.py in __new__(cls=<class 'db_row.MetaFields'>, name='fields', bases=(<class 'db_row.Fields'>,), field_dict={'__fields__': (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), '__slots__': ()})
    242   def __new__(cls, name, bases, field_dict):
    243     fields = field_dict.get('__fields__',())
=>  244     cls.build_properties(cls, fields, field_dict)
    245     return super(MetaFields,cls).__new__(cls, name, bases, field_dict)
    246 
cls = <class 'db_row.MetaFields'>, cls.build_properties = <function build_properties>, fields = (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), field_dict = {'__fields__': (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), '__slots__': ()}
 /home/quango/blog/db_row.py in build_properties(self=<class 'db_row.MetaFields'>, fields=(Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), field_dict={'__fields__': (Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='name', type_code=1043, display_size...ze=128, precision=None, scale=None, null_ok=None), Column(name='email', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...ze=128, precision=None, scale=None, null_ok=None), Column(name='comment', type_code=25, display_siz...ize=-1, precision=None, scale=None, null_ok=None), Column(name='cid', type_code=23, display_size=No...size=4, precision=None, scale=None, null_ok=None), Column(name='title', type_code=1043, display_siz...ze=100, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1114, display_siz...size=8, precision=None, scale=None, null_ok=None)), '__slots__': ()})
    256     for f in fields:
    257       if type(f) is not str:
=>  258         raise TypeError, 'Field names must be ASCII strings'
    259       if not f:
    260         raise ValueError, 'Field names cannot be empty'
builtin TypeError = <type 'exceptions.TypeError'>

<type 'exceptions.TypeError'>: Field names must be ASCII strings
      args = ('Field names must be ASCII strings',)
      message = 'Field names must be ASCII strings'