Re: Debian Games Team website
Hi Andreas, I think I ran into the same encoding issue you just
mentioned.
I'm posting about this on the mailing list hoping that someone
can help and also saving the solution for future queries.
I got the Blends Website repository[0] and downloaded the UDD[1],
following all the instructions to keep a local copy of it
(set up postgresql and stuff).
Unfortunately whenever I try to build the Debian Games Blend...
cd ~/path/to/blends/website
cd webtools/
./tasks.py debian-games
...it aborts with an error message like this:
Trackback (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'\xbb' in
position 4930: orginal not in range(128)
So have you ran on this same issue?
How do you work around it?
Note that I did not made any changes to the code, just want to see it
working locally before doing anything.
Regards,
Alexandre Dantas
[0]: git clone
git+ssh://<user>@scm.alioth.debian.org//git/blends/website.git
[1]: https://wiki.debian.org/UltimateDebianDatabase/
On 08/18/2014 04:56 AM, Andreas Tille wrote:
> Hi Markus,
>
> On Sun, Aug 17, 2014 at 02:21:47PM +0200, Markus Koschany wrote:
>>
>> I just had a look. I think I need to change the output format and
>> doctype to HTML5 in tasks.py, include the bootstrap stylesheets and
>> change the markup of all files in the templates directory.
>
> Sounds good.
>
>> I guess I can do that.
>
> Sounds even better. :-)
>
>> The question is how can I test my results without disrupting
>> other blends? Is there a simple to way to create templates on a
>> per-Blend basis? Does some kind of playground or test setup for
>> experiments exist?
>
> I'm using two kinds of playgrounds:
>
> 1. My local machine running a (monthly updated) UDD clone
> Remark: Currently I'm struggling hard since the code that
> runs under stable has some encoding issues under testing
> which I'm using on local machines. That's a big nuisance
> and one of the reasons I do not make progress. :-(
>
> 2. http://blends.debian.net
> ^^^
>
> If you send me a user name you want to use and a ssh-key you can
> get a login on blends.debian.net.
>
> I'd happily provide more hints if needed.
>
> Kind regards
>
> Andreas.
>
Reply to: