Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2461 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

TG2.1b1 Python 2.4 issues

Reported by: lmacken Owned by:
Priority: normal Milestone: 2.1rc1
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 Download (845 bytes) - added by lmacken 9 years ago.
TurboGears2-py24-ternary.patch -- untestsed patch

Change History

comment:1 Changed 9 years ago 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

Changed 9 years ago by lmacken

TurboGears2-py24-ternary.patch -- untestsed patch

comment:2 Changed 9 years ago by lmacken

  • Status changed from new to closed
  • Resolution set to fixed

Applied in r971

comment:3 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 2.1

comment:4 Changed 9 years ago by percious

  • Milestone changed from 2.1 to 2.1rc1
Note: See TracTickets for help on using tickets.