[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [GSoC] Reg Blends Web Sentinel



Hi,

On Thu, Mar 5, 2015 at 7:25 PM, Andreas Tille <andreas@an3as.eu> wrote:

However we have now a remaining problem:

   bugs_udd.py debian-games

Traceback (most recent call last):
  File "./bugs_udd.py", line 476, in <module>
    main()
  File "./bugs_udd.py", line 471, in main
    print >> f, template.generate(**data).render('xhtml')
  File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 184, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 57, in encode
    return _encode(''.join(list(iterator)))
  File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 350, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 669, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 786, in __call__
    text = escape(pop_text(), quotes=False)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 188: ordinal not in range(128)


If there is a similarly simple solution this would be really great.

 
I have sent another patch which sends 'long_description' to to_unicode(). Now, './bugs_udd.py debian-games' runs without any error. Also, there are no errors for debian-junior and debian-med. I have a small question though - now we are just sending specific items to to_unicode function like: to_unicode(_name), to_unicode(data['idxsummary']), to_unicode(bug[k]), to_unicode(t['long_description']) etc, but in future can there be cases where we have, say 't['title']' with unicode characters ? If yes, then we'll need to send this also to to_unicode(). I am not very sure, but to solve such cases will it be a good idea to send a variable which contains all this data to to_unicode(), instead of sending every item individually ? I am not very familiar with the code base just yet, so can you please advise me on this ?


If we are really lucky this will also help in the next annoying
case:

   tasks-py debian-med
Traceback (most recent call last):
  File "./tasks.py", line 181, in <module>
    print >> f, template.generate(**data).render('xhtml')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1274: ordinal not in range(128)


When I try to run  './tasks.py debian-med', I get the following error:

svn: E000111: Unable to connect to a repository at URL 'svn://anonscm.debian.org/svn/blends/projects/med/trunk/debian-med/tasks'
svn: E000111: Can't connect to host 'anonscm.debian.org': Connection refused

Can you please help me with the error ? Is it some configuration problem of svn in my system or something else?

Thanking You,
Akshita Jha

Reply to: