Modify

Opened 16 years ago

Closed 16 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

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

Change History (2)

comment:1 Changed 16 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.

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).

comment:2 Changed 16 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.

Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain aviram.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.