Changeset 4885
- Timestamp:
- 07/03/08 17:28:59 (6 months ago)
- Files:
-
- branches/1.0/turbogears/view/base.py (modified) (1 diff)
- branches/1.1/turbogears/view/base.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/turbogears/view/base.py
r4789 r4885 129 129 if isinstance(content_format, (tuple, list)): 130 130 content_format = content_format[0] 131 content_format = content_format.split()[0].split('-' , 1)[0] 131 if isinstance(content_format, str): 132 content_format = content_format.split( 133 )[0].split('-' , 1)[0].lower() 134 else: 135 content_format = 'html' 132 136 else: 133 137 content_format = 'html' branches/1.1/turbogears/view/base.py
r4789 r4885 134 134 if isinstance(content_format, (tuple, list)): 135 135 content_format = content_format[0] 136 content_format = content_format.split()[0].split('-' , 1)[0] 136 if isinstance(content_format, str): 137 content_format = content_format.split( 138 )[0].split('-' , 1)[0].lower() 139 else: 140 content_format = 'html' 137 141 else: 138 142 content_format = 'html'