Hello all,
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?
>>
>
>
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 [email protected]
To unsubscribe from this group, send an email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--- 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()">