Ticket #5225 (closed task: wontfix)

Opened 3 years ago

Last modified 3 years ago

Use with Python 2.4.3

Reported by: anonymous Assigned to: aviram
Priority: normal Component: TicketChartsMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Is there a way to use this macro without upgrading Python from 2.4? The python-ofc-library-2 included with Open Flash Charts 2 uses conditional expressions not available before 2.5.

Attachments

Change History

05/13/09 17:52:53 changed by anonymous

I was able to get this to work with 2.4.3 and the method I used could actually be applied to this macro so it too can be backward-compatible.

TicketCharts?.py can use the recipe at http://code.activestate.com/recipes/523034/ to supply a defaultdict for versions <2.5. Note the small fix in the comment at the bottom (items to iteritems).

Then, in the python-ofc-library-2 included with Open Flash Charts 2, modify set_style in openFlashChart_elements.py to not use a conditional expression (Standard if-else block will do).

05/22/09 15:41:46 changed by aviram

  • status changed from new to closed.
  • resolution set to wontfix.

Hello anonymous,

As you mentioned, in order to resolve the compatibility problems for python versions prior to 2.5, one must revise both TicketCharts? and Python-OFC.

Since I can't change Python-OFC, I don't see any reason to change my TicketChartsMacro Plugin.

However, I will create a link to this solution at the macro's page, for people who still live in the middle ages and use Python versions prior to 2.5.

Thanks!


Add/Change #5225 (Use with Python 2.4.3)




Change Properties
Action