Ticket #2461 (closed defect: fixed)
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
Change History
Changed 2 years ago by lmacken
-
attachment
TurboGears2-py24-ternary.patch
added
TurboGears2-py24-ternary.patch -- untestsed patch
Note: See
TracTickets for help on using
tickets.
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