Django

Code

Changeset 6501

Show
Ignore:
Timestamp:
10/13/07 22:45:53 (10 months ago)
Author:
mtredinnick
Message:

queryset-refactor: Removed a whole bunch of unused code. This includes the
final remnants of handle_legacy_orderlist(). Refs #245.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/queryset-refactor/django/db/models/query.py

    r6497 r6501  
    2222# when deleting objects). 
    2323CHUNK_SIZE = 100 
    24  
    25 #################### 
    26 # HELPER FUNCTIONS # 
    27 #################### 
    28  
    29 # FIXME 
    30 def orderlist2sql(order_list, opts, prefix=''): 
    31     raise NotImplementedError 
    32 ##def orderlist2sql(order_list, opts, prefix=''): 
    33 ##    qn = connection.ops.quote_name 
    34 ##    if prefix.endswith('.'): 
    35 ##        prefix = qn(prefix[:-1]) + '.' 
    36 ##    output = [] 
    37 ##    for f in handle_legacy_orderlist(order_list): 
    38 ##        if f.startswith('-'): 
    39 ##            output.append('%s%s DESC' % (prefix, qn(orderfield2column(f[1:], opts)))) 
    40 ##        elif f == '?': 
    41 ##            output.append(connection.ops.random_function_sql()) 
    42 ##        else: 
    43 ##            output.append('%s%s ASC' % (prefix, qn(orderfield2column(f, opts)))) 
    44 ##    return ', '.join(output) 
    45  
    46 ##def quote_only_if_word(word): 
    47 ##    if re.search('\W', word): # Don't quote if there are spaces or non-word chars. 
    48 ##        return word 
    49 ##    else: 
    50 ##        return connection.ops.quote_name(word) 
    5124 
    5225class _QuerySet(object): 
  • django/branches/queryset-refactor/django/db/models/sql/query.py

    r6499 r6501  
    1616from django.contrib.contenttypes import generic 
    1717from datastructures import EmptyResultSet 
    18 from utils import handle_legacy_orderlist 
    1918 
    2019try: