2009-04-26 09:08:08 |
Rob van der Linde |
bug |
|
|
added bug |
2009-04-26 09:08:08 |
Rob van der Linde |
attachment added |
|
patch to fix tag cloud generation (issue 91) http://launchpadlibrarian.net/25991637/dtcw.patch |
|
2009-04-26 09:39:24 |
Krzysztof Klimonda |
python-django-tagging (Ubuntu): assignee |
|
kklimonda |
|
2009-04-26 23:46:41 |
Krzysztof Klimonda |
summary |
utils.calculate_cloud can leave font_size unset for most frequent tag |
utils.calculate_cloud() can leave font_size unset for most frequent tag |
|
2009-04-26 23:46:41 |
Krzysztof Klimonda |
description |
Binary package hint: python-django-tagging
This is a long standing issue on Google Code, issue 91:
http://code.google.com/p/django-tagging/issues/detail?id=91
This issue has been reported on Google Code quite some time ago, and although there has been a patch available for well over a year, the patch just doesn't seem to get applied. Without this patch, many websites written in Django will often crash when generating a tag cloud, because the font_size field does not always get set, and this does seem to happen quite a lot.
I am not sure why this patch has not been applied for so long, maybe the upstream author will need to be contacted about this.
I have created a package myself with this patch applied in my own PPA should anyone need it for the time being:
https://launchpad.net/~robvdl/+archive/ppa |
Binary package hint: python-django-tagging
Current version of package ``python-django-tagging'' has a long standing bug in a _calculate_tag_weight() method.
When a programmer creates tag cloud using method util.calculate_cloud() or Tag.objects.cloud_for_model() and sets distribution argument to ``LOGARITHMIC'' (or leave it empty as it is default value) _calculate_tag_weight() in some cases may return result which is greater than max_weight - because of that Tag object (the one most frequently used in model) will be missing argument ``font_size'' and throw AttributeError exception. It happens because of the way a floating point division is done in Python.
The proposed patch address this issue by returning ``max_weight'' in case when result of computation is greater than it.
I'm attaching a testcase in a form of a django project. To use it you must install python-django-tagging and then from project root execute ``./manage.py test''. AssertionError will be thrown. After fixing this issue test passes.
A link to upstream bugreport: http://code.google.com/p/django-tagging/issues/detail?id=91 |
|
2009-04-26 23:47:04 |
Krzysztof Klimonda |
nominated for series |
|
Ubuntu Jaunty |
|
2009-04-26 23:47:48 |
Krzysztof Klimonda |
attachment added |
|
testcase_367214.tgz http://launchpadlibrarian.net/26012610/testcase_367214.tgz |
|
2009-04-26 23:48:10 |
Krzysztof Klimonda |
attachment added |
|
python-django-tagging_0.2.1+svn154-0ubuntu2.1.debdiff http://launchpadlibrarian.net/26012616/python-django-tagging_0.2.1%2Bsvn154-0ubuntu2.1.debdiff |
|
2009-04-26 23:49:02 |
Krzysztof Klimonda |
bug |
|
|
added subscriber MOTU Stable Release Updates |
2009-04-26 23:53:49 |
John Dong |
bug task added |
|
python-django-tagging (Ubuntu Jaunty) |
|
2009-04-26 23:54:12 |
John Dong |
python-django-tagging (Ubuntu Jaunty): status |
New |
Confirmed |
|
2009-04-27 02:06:45 |
Scott Kitterman |
python-django-tagging (Ubuntu Jaunty): status |
Confirmed |
Fix Committed |
|
2009-04-27 02:06:50 |
Scott Kitterman |
tags |
|
verification-needed |
|
2009-05-14 20:50:15 |
Krzysztof Klimonda |
python-django-tagging (Ubuntu): assignee |
Krzysztof Klimonda (kklimonda) |
|
|
2009-05-14 20:51:10 |
C de-Avillez |
python-django-tagging (Ubuntu): importance |
Undecided |
Low |
|
2009-05-14 20:51:10 |
C de-Avillez |
python-django-tagging (Ubuntu): status |
New |
Triaged |
|
2009-05-19 21:03:33 |
Krzysztof Klimonda |
attachment added |
|
python-django-tagging_0.2.1+svn154-0ubuntu2.1.debdiff http://launchpadlibrarian.net/26949070/python-django-tagging_0.2.1%2Bsvn154-0ubuntu2.1.debdiff |
|
2009-05-26 11:00:21 |
Martin Pitt |
tags |
verification-needed |
verification-done |
|
2009-05-26 11:00:49 |
Martin Pitt |
bug |
|
|
added subscriber Ubuntu Sponsors for main |
2009-06-02 07:11:04 |
Launchpad Janitor |
python-django-tagging (Ubuntu Jaunty): status |
Fix Committed |
Fix Released |
|
2009-06-02 07:12:23 |
Martin Pitt |
python-django-tagging (Ubuntu): status |
Triaged |
Fix Committed |
|
2009-06-02 07:12:23 |
Martin Pitt |
python-django-tagging (Ubuntu): assignee |
|
Krzysztof Klimonda (kklimonda) |
|
2009-06-12 05:22:07 |
Daniel Holbach |
bug |
|
|
added subscriber Ubuntu Sponsors for universe |
2009-06-12 05:26:12 |
Daniel Holbach |
removed subscriber Ubuntu Sponsors for main |
|
|
|
2009-06-19 06:05:58 |
Daniel Holbach |
python-django-tagging (Ubuntu): status |
Fix Committed |
Fix Released |
|
2009-07-20 20:20:36 |
Launchpad Janitor |
branch linked |
|
lp:~ubuntu-branches/ubuntu/jaunty/python-django-tagging/jaunty-proposed |
|
2010-01-02 18:32:06 |
Benjamin Drung |
removed subscriber Ubuntu Sponsors for universe |
|
|
|