Opened 10 years ago

Closed 10 years ago

#5225 closed task (wontfix)

Use with Python 2.4.3

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


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 (0)

Change History (2)

comment:1 Changed 10 years ago 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. can use the recipe at 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 to not use a conditional expression (Standard if-else block will do).

comment:2 Changed 10 years ago by aviram

Resolution: wontfix
Status: newclosed

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.


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain aviram.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.