Changeset 8047
- Timestamp:
- 07/21/08 22:26:25 (5 months ago)
- Files:
-
- django/trunk/django/db/models/sql/query.py (modified) (1 diff)
- django/trunk/django/http/multipartparser.py (modified) (6 diffs)
- django/trunk/django/views/debug.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/sql/query.py
r8046 r8047 1214 1214 if model: 1215 1215 # The field lives on a base class of the current model. 1216 alias_list = []1217 1216 for int_model in opts.get_base_chain(model): 1218 1217 lhs_col = opts.parents[int_model].column django/trunk/django/http/multipartparser.py
r7905 r8047 5 5 file upload handlers for processing. 6 6 """ 7 7 8 import cgi 8 9 from django.conf import settings … … 13 14 from django.core.files.uploadhandler import StopUpload, SkipFile, StopFutureHandlers 14 15 15 __all__ = ('MultiPartParser', 'MultiPartParserError','InputStreamExhausted')16 __all__ = ('MultiPartParser', 'MultiPartParserError', 'InputStreamExhausted') 16 17 17 18 class MultiPartParserError(Exception): … … 163 164 elif item_type == FILE: 164 165 # This is a file, use the handler... 165 file_successful = True166 166 file_name = disposition.get('filename') 167 167 if not file_name: … … 210 210 211 211 except SkipFile, e: 212 file_successful = False213 212 # Just use up the rest of this file... 214 213 exhaust(field_stream) … … 516 515 end = index 517 516 next = index + len(self._boundary) 518 data_len = len(data) - 1519 517 # backup over CRLF 520 518 if data[max(0,end-1)] == '\n': … … 522 520 if data[max(0,end-1)] == '\r': 523 521 end -= 1 524 # skip over --CRLF525 #if data[min(data_len,next)] == '-':526 # next += 1527 #if data[min(data_len,next)] == '-':528 # next += 1529 #if data[min(data_len,next)] == '\r':530 # next += 1531 #if data[min(data_len,next)] == '\n':532 # next += 1533 522 return end, next 534 523 django/trunk/django/views/debug.py
r7927 r8047 146 146 'name': origin.name, 147 147 } 148 if hasattr(self.exc_value, 'exc_info') and self.exc_value.exc_info:149 exc_type, exc_value, tb = self.exc_value.exc_info150 148 151 149 def _get_lines_from_file(self, filename, lineno, context_lines, loader=None, module_name=None):
