Discussion:
[Agilo for Trac] Problem with German Date: Genshi UnicodeEncodeError error while rendering template
idaschoenfeld-gM/Ye1E23mwN+
2014-02-04 09:34:05 UTC
Permalink
Hello,
I'm pretty new to Agilo and when I started using it yesterday I noticed a
"bug". I'm not sure if Genshi is actually causing it or not.
I created a Sprint which ends in March. Trac uses the date of my browser,
with is actually German, to render the date properly. When I try to to get
the sprint view it crashes with 'Genshi UnicodeEncodeError error while
rendering template' and tells me which template and line this error
causes(..\Python27\Lib\site-packages\binary_agilo-1.3.12_PRO-py2.7.egg\agilo\scrum\backlog\templates\agilo_backlog.html,
line 65).

In line 65 function strftime("%a %B %d") is called twice, for startdate
and enddate of current sprint. '%B' causes here the error, when it tries to
render 'MÀrz'.
I changed '%B' to '%m' so it won't crash at the moment.

Does somebody know if there is a fix for this problem or am I the only one
who experienced this error?

Here are my installed versions:
Python 2.7.6
Agilo 1.3.12
Trac 1.0.1.
Genshi 0.7
I'm running the project with tracd on Windows Server 2008 (:-|)

Hopefully this helps.

Thanks in advance
Ida
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Claudio Di Cosmo
2014-02-04 10:21:17 UTC
Permalink
Hi Ida,
Post by idaschoenfeld-gM/Ye1E23mwN+
Hello,
I'm pretty new to Agilo and when I started using it yesterday I noticed a
"bug". I'm not sure if Genshi is actually causing it or not.
I created a Sprint which ends in March. Trac uses the date of my browser,
with is actually German, to render the date properly. When I try to to get
the sprint view it crashes with 'Genshi UnicodeEncodeError error while
rendering template' and tells me which template and line this error
causes(..\Python27\Lib\site-packages\binary_agilo-1.3.12_PRO-py2.7.egg\agilo\scrum\backlog\templates\agilo_backlog.html,
line 65).
In line 65 function strftime("%a %B %d") is called twice, for startdate
and enddate of current sprint. '%B' causes here the error, when it tries to
render 'MÀrz'.
I changed '%B' to '%m' so it won't crash at the moment.
Does somebody know if there is a fix for this problem or am I the only one
who experienced this error?
A ticket (https://agilo.agilofortrac.com/ticket/1238) has been created for
it and we will work on it as soon as possible.

Thanks to point us out this issue and your patience.
I will notify you when the bug is fixed.

Cheers,
Claudio Di Cosmo
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

claudio.dicosmo-CKHYNj9aYvRx67MzidHQgQC/***@public.gmane.org
http://www.agilosoftware.com

Follow us on twitter: http://twitter.com/agiloforscrum,
http://twitter.com/agilofortrac
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Alex
2014-02-26 10:06:11 UTC
Permalink
Hello all,

I'm pretty new to Agilo and when I started using it yesterday I noticed a
Post by idaschoenfeld-gM/Ye1E23mwN+
"bug". I'm not sure if Genshi is actually causing it or not.
I created a Sprint which ends in March. Trac uses the date of my browser,
with is actually German, to render the date properly. When I try to to get
the sprint view it crashes with 'Genshi UnicodeEncodeError error while
rendering template' and tells me which template and line this error
causes(..\Python27\Lib\site-packages\binary_agilo-1.3.12_PRO-py2.7.egg\agilo\scrum\backlog\templates\agilo_backlog.html,
line 65).
In line 65 function strftime("%a %B %d") is called twice, for startdate
and enddate of current sprint. '%B' causes here the error, when it tries to
render 'MÀrz'.
I changed '%B' to '%m' so it won't crash at the moment.
Does somebody know if there is a fix for this problem or am I the only
one who experienced this error?
below and attached is the fix for patch-binary_agilo-1.3.12_PRO-py2.6.egg,
should also work wor 2.5 and 2.7.

Greetings,
Alex

--- agilo/scrum/backlog/templates/agilo_backlog.html.old 2014-02-04
14:19:55.615587594 +0100
+++ agilo/scrum/backlog/templates/agilo_backlog.html 2014-02-25
12:25:28.042089635 +0100
@@ -62,7 +62,7 @@
</div>
<div id="backlog" class="new">
<h1>${backlog.name}<py:if test="backlog.scope != 'global'">
for $backlog.scope</py:if>
- <span class="sprint-dates"
py:if="backlog.is_sprint_backlog()">${backlog.sprint().start.strftime("%a
%B %d")} <span id="sprint-dates-arrow"></span>
${backlog.sprint().end.strftime("%a %B %d")}</span>
+ <span class="sprint-dates"
py:if="backlog.is_sprint_backlog()">${backlog.sprint().start.strftime("%a
%B %d").decode('utf-8')} <span id="sprint-dates-arrow"></span>
${backlog.sprint().end.strftime("%a %B %d").decode('utf-8')}</span>
</h1>
<div class="backlog-header">
<py:for each="column, name in
backlog.config.backlog_human_readable_column_labels().items()">
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
idaschoenfeld-gM/Ye1E23mwN+
2014-02-28 10:22:56 UTC
Permalink
Thanks a lot for the patch. At the end I had to use 'latin-1' as
encoding. ?#@*&%! Windows -.-
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Sven1978
2014-03-06 09:47:55 UTC
Permalink
Hello,

i had the same error. After replacing the line i get the error :

Genshi UnicodeDecodeError error while rendering template (unknown template
location)

The Server is Win7 Ultimate edition.

MFG

Sven

Am Dienstag, 4. Februar 2014 10:34:05 UTC+1 schrieb
Post by idaschoenfeld-gM/Ye1E23mwN+
Hello,
I'm pretty new to Agilo and when I started using it yesterday I noticed a
"bug". I'm not sure if Genshi is actually causing it or not.
I created a Sprint which ends in March. Trac uses the date of my browser,
with is actually German, to render the date properly. When I try to to get
the sprint view it crashes with 'Genshi UnicodeEncodeError error while
rendering template' and tells me which template and line this error
causes(..\Python27\Lib\site-packages\binary_agilo-1.3.12_PRO-py2.7.egg\agilo\scrum\backlog\templates\agilo_backlog.html,
line 65).
In line 65 function strftime("%a %B %d") is called twice, for startdate
and enddate of current sprint. '%B' causes here the error, when it tries to
render 'MÀrz'.
I changed '%B' to '%m' so it won't crash at the moment.
Does somebody know if there is a fix for this problem or am I the only one
who experienced this error?
Python 2.7.6
Agilo 1.3.12
Trac 1.0.1.
Genshi 0.7
I'm running the project with tracd on Windows Server 2008 (:-|)
Hopefully this helps.
Thanks in advance
Ida
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Claudio Di Cosmo
2014-03-14 14:51:56 UTC
Permalink
Hi Sven,

on this thread you should find a solution to your issue
https://groups.google.com/forum/?hl=en#!topic/agilo/V8tto7GwnFA
Genshi UnicodeDecodeError error while rendering template (unknown template location)
The Server is Win7 Ultimate edition.
Cheers,
Claudio Di Cosmo
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

claudio.dicosmo-CKHYNj9aYvRx67MzidHQgQC/***@public.gmane.org
http://www.agilosoftware.com

Follow us on twitter: http://twitter.com/agiloforscrum, http://twitter.com/agilofortrac

Amtsgericht Charlottenburg: HRB 127146
CEO Marion Eickmann, Andrea Tomasini
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...