Django

Code

Changeset 5194

Show
Ignore:
Timestamp:
05/11/07 11:03:48 (2 years ago)
Author:
bouldersprinters
Message:

boulder-oracle-sprint: Merged to [5193]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/boulder-oracle-sprint/django/conf/locale/zh_CN/LC_MESSAGES/djangojs.po

    r3827 r5194  
    4747#: contrib/admin/media/js/calendar.js:24 
    4848msgid "January February March April May June July August September October November December" 
    49 msgstr "一月 二月 三月 四月 五月 六月 六月 七月 八月 九月 十月 十一月 十二月" 
     49msgstr "一月 二月 三月 四月 五月 六月 七月 八月 九月 十月 十一月 十二月" 
    5050 
    5151#: contrib/admin/media/js/dateparse.js:33 
  • django/branches/boulder-oracle-sprint/django/conf/locale/zh_CN/LC_MESSAGES/django.po

    r3827 r5194  
    13451345#: utils/dates.py:19 
    13461346msgid "may" 
    1347 msgstr "月" 
     1347msgstr "月" 
    13481348 
    13491349#: utils/dates.py:19 
  • django/branches/boulder-oracle-sprint/django/contrib/webdesign/__init__.py

    • Property svn:eol-style set to native
  • django/branches/boulder-oracle-sprint/django/contrib/webdesign/lorem_ipsum.py

    • Property svn:eol-style set to native
    r4906 r5194  
    6060    c = len(word_list) 
    6161    if count > c: 
    62         count = min(count - c, len(WORDS)) 
    63         word_list += random.sample(WORDS, count - c) 
     62        count -= c 
     63        while count > 0: 
     64            c = min(count, len(WORDS)) 
     65            count -= c 
     66            word_list += random.sample(WORDS, c) 
    6467    else: 
    6568        word_list = word_list[:count] 
  • django/branches/boulder-oracle-sprint/django/contrib/webdesign/templatetags/__init__.py

    • Property svn:eol-style set to native
  • django/branches/boulder-oracle-sprint/django/contrib/webdesign/templatetags/webdesign.py

    • Property svn:eol-style set to native
  • django/branches/boulder-oracle-sprint/django/http/__init__.py

    r5100 r5194  
    9292        MultiValueDict.__setitem__(self, key, value) 
    9393 
     94    def __delitem__(self, key): 
     95        self._assert_mutable() 
     96        super(QueryDict, self).__delitem__(key) 
     97 
    9498    def __copy__(self): 
    9599        result = self.__class__('', mutable=True) 
  • django/branches/boulder-oracle-sprint/docs/install.txt

    r5100 r5194  
    5757 
    5858  If you're on Windows, check out the unofficial `compiled Windows version`_. 
    59    
     59 
    6060* If you're using MySQL, you'll need MySQLdb_, version 1.2.1p2 or higher. 
    6161  You will also want to read the database-specific notes for the `MySQL backend`_. 
     
    7979================================= 
    8080 
    81 If you are upgrading your installation of Django from a previous version,  
    82 you will need to uninstall the old Django version before installing the  
    83 new version.  
     81If you are upgrading your installation of Django from a previous version, 
     82you will need to uninstall the old Django version before installing the 
     83new version. 
    8484 
    8585If you installed Django using ``setup.py install``, uninstalling 
    86 is as simple as deleting the ``django`` directory from your Python  
     86is as simple as deleting the ``django`` directory from your Python 
    8787``site-packages``. 
    8888 
    89 If you installed Django from a Python Egg, remove the Django ``.egg` file, 
    90 and remove the reference to the egg in the file named ``easy-install.pth``.  
     89If you installed Django from a Python Egg, remove the Django ``.egg`` file, 
     90and remove the reference to the egg in the file named ``easy-install.pth``. 
    9191This file should also be located in your ``site-packages`` directory. 
    9292 
     
    9696    system, and the location in which Python was installed. However, the 
    9797    following locations are common: 
    98      
     98 
    9999    * If you're using Linux: ``/usr/lib/python2.X/site-packages`` 
    100100 
  • django/branches/boulder-oracle-sprint/docs/templates_python.txt

    r5174 r5194  
    718718            tag_name, format_string = token.split_contents() 
    719719        except ValueError: 
    720             raise template.TemplateSyntaxError, "%r tag requires a single argument" % token.contents[0] 
     720            raise template.TemplateSyntaxError, "%r tag requires a single argument" % token.contents.split()[0] 
    721721        if not (format_string[0] == format_string[-1] and format_string[0] in ('"', "'")): 
    722722            raise template.TemplateSyntaxError, "%r tag's argument should be in quotes" % tag_name 
     
    847847            tag_name, date_to_be_formatted, format_string = token.split_contents() 
    848848        except ValueError: 
    849             raise template.TemplateSyntaxError, "%r tag requires exactly two arguments" % token.contents[0] 
     849            raise template.TemplateSyntaxError, "%r tag requires exactly two arguments" % token.contents.split()[0] 
    850850        if not (format_string[0] == format_string[-1] and format_string[0] in ('"', "'")): 
    851851            raise template.TemplateSyntaxError, "%r tag's argument should be in quotes" % tag_name 
     
    10811081            tag_name, arg = token.contents.split(None, 1) 
    10821082        except ValueError: 
    1083             raise template.TemplateSyntaxError, "%r tag requires arguments" % token.contents[0] 
     1083            raise template.TemplateSyntaxError, "%r tag requires arguments" % token.contents.split()[0] 
    10841084        m = re.search(r'(.*?) as (\w+)', arg) 
    10851085        if not m: 
  • django/branches/boulder-oracle-sprint/tests/regressiontests/httpwrappers/tests.py

    r5100 r5194  
    9797'john' 
    9898 
     99>>> del q['name'] 
     100>>> 'name' in q 
     101False 
     102 
     103>>> q['name'] = 'john' 
     104 
    99105>>> q.get('foo', 'default') 
    100106'default' 
     
    368374'vote=yes&vote=no' 
    369375 
     376>>> del q['vote'] 
     377Traceback (most recent call last): 
     378... 
     379AttributeError: This QueryDict instance is immutable 
     380 
    370381""" 
    371382