Django

Code

Show
Ignore:
Timestamp:
05/17/07 13:35:22 (2 years ago)
Author:
mtredinnick
Message:

unicode: Merged from trunk up to [5265].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/unicode

    • Property svnmerge-integrated changed from /django/trunk:1-5240 to /django/trunk:1-5278
  • django/branches/unicode/extras/django_bash_completion

    r4677 r5279  
    4343 
    4444    # Standalone options 
    45     opts="--help --settings --pythonpath --version" 
     45    opts="--help --settings --pythonpath --noinput --noreload --format --indent --verbosity --adminmedia --version" 
    4646    # Actions 
    4747    actions="adminindex createcachetable dbshell diffsettings \ 
    48              inspectdb install reset runfcgi runserver \ 
    49              shell sql sqlall sqlclear sqlindexes sqlinitialdata
     48             dumpdata flush inspectdb loaddata reset runfcgi runserver \ 
     49             shell sql sqlall sqlclear sqlcustom sqlflush sqlindexes
    5050             sqlreset sqlsequencereset startapp startproject \ 
    51              syncdb validate" 
     51             syncdb test validate" 
    5252    # Action's options 
    5353    action_shell_opts="--plain" 
     
    8585    else 
    8686        case ${prev} in 
    87             adminindex|install|reset| \ 
    88             sql|sqlall|sqlclear|sqlindexes| \ 
    89             sqlinitialdata|sqlreset|sqlsequencereset) 
    90             # App completion 
    91             settings="" 
    92             # If settings.py in the PWD, use that 
    93             if [ -e settings.py ] ; then 
    94                 settings="$PWD/settings.py" 
    95             else 
    96                 # Use the ENV variable if it is set 
    97                 if [ $DJANGO_SETTINGS_MODULE ] ; then 
    98                     settings=$DJANGO_SETTINGS_MODULE 
     87            adminindex|dumpdata|reset| \ 
     88            sql|sqlall|sqlclear|sqlcustom|sqlindexes| \ 
     89            sqlreset|sqlsequencereset|test) 
     90                # App completion 
     91                settings="" 
     92                # If settings.py in the PWD, use that 
     93                if [ -e settings.py ] ; then 
     94                    settings="$PWD/settings.py" 
     95                else 
     96                    # Use the ENV variable if it is set 
     97                    if [ $DJANGO_SETTINGS_MODULE ] ; then 
     98                        settings=$DJANGO_SETTINGS_MODULE 
     99                    fi 
    99100                fi 
    100             fi 
    101             # Couldn't find settings so return nothing 
    102             if [ -z $settings ] ; then 
    103                 COMPREPLY=() 
    104             # Otherwise inspect settings.py file 
    105             else 
    106                 apps=`sed -n "/INSTALLED_APPS = (/,/)/p" $settings | \ 
    107                       grep -v "django.contrib" |  
    108                       sed -n "s/^[ ]*'\(.*\.\)*\(.*\)'.*$/\2 /pg" | \ 
    109                       tr -d "\n"` 
    110                 COMPREPLY=( $(compgen -W "${apps}" -- ${cur}) ) 
    111             fi 
    112             return 0 
    113             ;; 
     101                # Couldn't find settings so return nothing 
     102                if [ -z $settings ] ; then 
     103                    COMPREPLY=() 
     104                # Otherwise inspect settings.py file 
     105                else 
     106                    apps=`sed -n "/INSTALLED_APPS = (/,/)/p" $settings | \ 
     107                          grep -v "django.contrib" |  
     108                          sed -n "s/^[ ]*'\(.*\.\)*\(.*\)'.*$/\2 /pg" | \ 
     109                          tr -d "\n"` 
     110                    COMPREPLY=( $(compgen -W "${apps}" -- ${cur}) ) 
     111                fi 
     112                return 0 
     113                ;; 
    114114 
    115115            createcachetable|dbshell|diffsettings| \