Ticket #2461 (closed defect: fixed)

Opened 1 month ago

Last modified 3 weeks ago

TG2.1b1 Python 2.4 issues

Reported by: lmacken Assigned to:
Priority: normal Milestone: __unclassified__
Component: TurboGears Version: 2.1
Severity: normal Keywords:
Cc:

Description

The latest restcontroller code does a ternary operation, which does not work in Python 2.4

Running TurboGears2-2.1b1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_f-W88/TurboGears2-2.1b1/egg-dist-tmp-obZ3ro
  File "build/bdist.linux-i686/egg/tg/controllers/restcontroller.py", line 137
    method = current_controller.get_one if self._is_exposed(current_controller, 'get_one') else current_controller.get
                            
}}}             ^

Attachments

TurboGears2-py24-ternary.patch (0.8 kB) - added by lmacken on 02/05/10 23:34:29.
TurboGears2-py24-ternary.patch -- untestsed patch

Change History

02/05/10 23:11:10 changed by lmacken

  File "/home/lmacken/moksha/tg2env/lib/python2.4/site-packages/TurboGears2-2.1b1-py2.4.egg/tg/controllers/restcontroller.py", line 137
    method = current_controller.get_one if self._is_exposed(current_controller, 'get_one') else current_controller.get
                                         ^
SyntaxError: invalid syntax

02/05/10 23:34:29 changed by lmacken

  • attachment TurboGears2-py24-ternary.patch added.

TurboGears2-py24-ternary.patch -- untestsed patch

02/22/10 11:11:37 changed by lmacken

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

Applied in r971