Changeset 1873
- Timestamp:
- 01/08/06 18:55:23 (3 years ago)
- Files:
-
- django/branches/magic-removal/AUTHORS (modified) (1 diff)
- django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/djangojs.mo (modified) (previous)
- django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/djangojs.po (modified) (3 diffs)
- django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/django.mo (modified) (previous)
- django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/django.po (modified) (8 diffs)
- django/branches/magic-removal/django/core/formfields.py (modified) (2 diffs)
- django/branches/magic-removal/django/core/management.py (modified) (1 diff)
- django/branches/magic-removal/docs/contributing.txt (modified) (9 diffs)
- django/branches/magic-removal/docs/db-api.txt (modified) (1 diff)
- django/branches/magic-removal/docs/forms.txt (modified) (1 diff)
- django/branches/magic-removal/docs/request_response.txt (modified) (1 diff)
- django/branches/magic-removal/docs/templates_python.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/AUTHORS
r1854 r1873 96 96 wojtek 97 97 ye7cakf02@sneakemail.com 98 Cheng Zhang 98 99 99 100 A big THANK YOU goes to: django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/djangojs.po
r1794 r1873 20 20 #, perl-format 21 21 msgid "Available %s" 22 msgstr "äÏÓÔÕÐ ÅÎ%s"22 msgstr "äÏÓÔÕÐÎÙÅ %s" 23 23 24 24 #: contrib/admin/media/js/SelectFilter2.js:41 … … 37 37 #, perl-format 38 38 msgid "Chosen %s" 39 msgstr "÷ÙÂÒÁÎ %s"39 msgstr "÷ÙÂÒÁÎÎÙÅ %s" 40 40 41 41 #: contrib/admin/media/js/SelectFilter2.js:54 … … 52 52 "January February March April May June July August September October November " 53 53 "December" 54 msgstr "ñÎ×ÁÒØ æÅ×ÒÁÌØ íÁÒÔ áÐÒÅÌØ íÁÊ éÀÎØ éÀÌØ á×ÇÕÓÔ óÅÎÔÑÂÒØ ïËÔÑÂÒØ îÏÑÂÒØ " 54 msgstr "" 55 "ñÎ×ÁÒØ æÅ×ÒÁÌØ íÁÒÔ áÐÒÅÌØ íÁÊ éÀÎØ éÀÌØ á×ÇÕÓÔ óÅÎÔÑÂÒØ ïËÔÑÂÒØ îÏÑÂÒØ " 55 56 "äÅËÁÂÒØ" 56 57 django/branches/magic-removal/django/conf/locale/ru/LC_MESSAGES/django.po
r1854 r1873 32 32 #: contrib/comments/models/comments.py:11 33 33 msgid "rating #1" 34 msgstr " "34 msgstr "ÒÅÊÔÉÎÇ #1" 35 35 36 36 #: contrib/comments/models/comments.py:12 37 37 msgid "rating #2" 38 msgstr " "38 msgstr "ÒÅÊÔÉÎÇ #2" 39 39 40 40 #: contrib/comments/models/comments.py:13 41 41 msgid "rating #3" 42 msgstr " "42 msgstr "ÒÅÊÔÉÎÇ #3" 43 43 44 44 #: contrib/comments/models/comments.py:14 45 45 msgid "rating #4" 46 msgstr " "46 msgstr "ÒÅÊÔÉÎÇ #4" 47 47 48 48 #: contrib/comments/models/comments.py:15 49 49 msgid "rating #5" 50 msgstr " "50 msgstr "ÒÅÊÔÉÎÇ #5" 51 51 52 52 #: contrib/comments/models/comments.py:16 53 53 msgid "rating #6" 54 msgstr " "54 msgstr "ÒÅÊÔÉÎÇ #6" 55 55 56 56 #: contrib/comments/models/comments.py:17 57 57 msgid "rating #7" 58 msgstr " "58 msgstr "ÒÅÊÔÉÎÇ #7" 59 59 60 60 #: contrib/comments/models/comments.py:18 61 61 msgid "rating #8" 62 msgstr " "62 msgstr "ÒÅÊÔÉÎÇ #8" 63 63 64 64 #: contrib/comments/models/comments.py:23 65 65 msgid "is valid rating" 66 msgstr " "66 msgstr "ÄÏÓÔÕÐÎÙÊ ÒÅÊÔÉÎÇ" 67 67 68 68 #: contrib/comments/models/comments.py:24 69 69 #: contrib/comments/models/comments.py:164 70 70 msgid "date/time submitted" 71 msgstr " "71 msgstr "ÄÁÔÁ/×ÒÅÍÑ ÄÏÂÁ×ÌÅÎÉÑ" 72 72 73 73 #: contrib/comments/models/comments.py:25 74 74 #: contrib/comments/models/comments.py:165 75 75 msgid "is public" 76 msgstr " "76 msgstr "ÐÕÂÌÉÞÎÙÊ" 77 77 78 78 #: contrib/comments/models/comments.py:26 contrib/admin/views/doc.py:256 … … 140 140 #: contrib/comments/models/comments.py:209 141 141 msgid "score" 142 msgstr " "142 msgstr "ÓÞ£Ô" 143 143 144 144 #: contrib/comments/models/comments.py:210 145 145 msgid "score date" 146 msgstr " "146 msgstr "ÓÞ£Ô ×ÒÅÍÅÎÉ" 147 147 148 148 #: contrib/comments/models/comments.py:213 … … 164 164 165 165 #: contrib/comments/models/comments.py:251 166 #, fuzzy167 166 msgid "User flag" 168 msgstr "ð ÏÌØÚÏ×ÁÔÅÌØ"167 msgstr "ðÒÉÚÎÁË ÐÏÌØÚÏ×ÁÔÅÌÑ" 169 168 170 169 #: contrib/comments/models/comments.py:252 171 #, fuzzy172 170 msgid "User flags" 173 msgstr "ð ÏÌØÚÏ×ÁÔÅÌØ"171 msgstr "ðÒÉÚÎÁËÉ ÏÌØÚÏ×ÁÔÅÌÑ" 174 172 175 173 #: contrib/comments/models/comments.py:256 176 174 #, python-format 177 175 msgid "Flag by %r" 178 msgstr " "176 msgstr "ïÔÍÅÞÅÎ %r" 179 177 180 178 #: contrib/comments/models/comments.py:271 … … 185 183 "%(text)s" 186 184 msgstr "" 185 "üÔÏÔ ËÏÍÍÅÎÔÁÒÉÊ ÂÙÌ ÏÔÍÅÞÅÎ %(user)s:\n" 186 "\n" 187 "%(text)s" 187 188 188 189 #: contrib/comments/models/comments.py:278 … … 967 968 968 969 #: contrib/admin/templates/widget/date_time.html:4 969 #, fuzzy970 970 msgid "Time:" 971 msgstr "÷ÒÅÍÑ "971 msgstr "÷ÒÅÍÑ:" 972 972 973 973 #: contrib/admin/templates/widget/file.html:2 974 974 msgid "Currently:" 975 msgstr " "975 msgstr "óÏ×ÒÅÍÅÎÎÏ:" 976 976 977 977 #: contrib/admin/templates/widget/file.html:3 978 #, fuzzy979 978 msgid "Change:" 980 msgstr "éÚÍÅÎÉÔØ "979 msgstr "éÚÍÅÎÉÔØ:" 981 980 982 981 #: contrib/redirects/models/redirects.py:7 … … 1010 1009 #: contrib/redirects/models/redirects.py:13 1011 1010 msgid "redirects" 1012 msgstr "ÐÅÒÅÎÁÐÒ Ï×ÌÅÎÉÑ"1011 msgstr "ÐÅÒÅÎÁÐÒÁ×ÌÅÎÉÑ" 1013 1012 1014 1013 #: contrib/flatpages/models/flatpages.py:7 … … 1046 1045 #: contrib/flatpages/models/flatpages.py:13 1047 1046 msgid "If this is checked, only logged-in users will be able to view the page." 1048 msgstr "åÓÌÉ ÏÔÍÅÞÅÎÏ, ÔÏÌØËÏ ×ÏÛÅÄÛÉÅ ÐÏÌØÚÏ×ÁÔÅÌÉ ÓÍÏÇÕÔ ×ÉÄÅÔØ ÓÔÒÁÎÉÃÕ "1047 msgstr "åÓÌÉ ÏÔÍÅÞÅÎÏ, ÔÏÌØËÏ ×ÏÛÅÄÛÉÅ ÐÏÌØÚÏ×ÁÔÅÌÉ ÓÍÏÇÕÔ ×ÉÄÅÔØ ÓÔÒÁÎÉÃÕ." 1049 1048 1050 1049 #: contrib/flatpages/models/flatpages.py:17 … … 1777 1776 #: core/template/defaultfilters.py:371 1778 1777 msgid "yes,no,maybe" 1779 msgstr " "1778 msgstr "ÄÁ,ÎÅÔ,ÍÏÖÅÔ ÂÙÔØ" 1780 1779 1781 1780 #: parts/auth/formfields.py:27 django/branches/magic-removal/django/core/formfields.py
r1800 r1873 787 787 class TimeField(TextField): 788 788 """A FormField that automatically converts its data to a datetime.time object. 789 The data should be in the format HH:MM:SS ."""789 The data should be in the format HH:MM:SS or HH:MM:SS.mmmmmm.""" 790 790 def __init__(self, field_name, is_required=False, validator_list=[]): 791 791 validator_list = [self.isValidTime] + validator_list … … 803 803 import time, datetime 804 804 try: 805 part_list = data.split('.') 805 806 try: 806 time_tuple = time.strptime( data, '%H:%M:%S')807 time_tuple = time.strptime(part_list[0], '%H:%M:%S') 807 808 except ValueError: # seconds weren't provided 808 time_tuple = time.strptime(data, '%H:%M') 809 return datetime.time(*time_tuple[3:6]) 809 time_tuple = time.strptime(part_list[0], '%H:%M') 810 t = datetime.time(*time_tuple[3:6]) 811 if (len(part_list) == 2): 812 t = t.replace(microsecond=int(part_list[1])) 813 return t 810 814 except (ValueError, TypeError): 811 815 return None django/branches/magic-removal/django/core/management.py
r1864 r1873 787 787 from PIL import Image 788 788 except ImportError: 789 e.add(opts, '"%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .' )789 e.add(opts, '"%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .' % f.name) 790 790 if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple): 791 791 e.add(opts, '"%s" field: prepopulate_from should be a list or tuple.' % f.name) django/branches/magic-removal/docs/contributing.txt
r1775 r1873 18 18 patches`_, below, for details on how to submit a patch. 19 19 20 * Join the `django-dev`_ mailing list and share your ideas for how to improve 21 Django. We're always open to suggestions, although we're likely to be skeptical 22 of large-scale suggestions without some code to back it up. 20 * Join the `django-developers`_ mailing list and share your ideas for how 21 to improve Django. We're always open to suggestions, although we're 22 likely to be skeptical of large-scale suggestions without some code to 23 back it up. 23 24 24 25 That's all you need to know if you'd like to join the Django development … … 51 52 52 53 * **Don't** use the ticket system to make large-scale feature requests. 53 We like to discuss any big changes to Django's core on the `django-dev `_54 We like to discuss any big changes to Django's core on the `django-developers`_ 54 55 list before actually working on them. 55 56 56 57 * **Don't** reopen issues that have been marked "wontfix". This mark means 57 58 that the decision has been made that we can't or won't fix this particular 58 issue. If you're not sure why, please ask on `django-dev `_.59 issue. If you're not sure why, please ask on `django-developers`_. 59 60 60 61 * **Don't** use the ticket tracker for lengthy discussions, because they're 61 62 likely to get lost. If a particular ticket is controversial, please move 62 discussion to `django-dev `_.63 discussion to `django-developers`_. 63 64 64 65 Reporting security issues … … 168 169 {{foo}} 169 170 171 Committing code 172 =============== 173 174 Please follow these guidelines when committing code to Django's Subversion 175 repository: 176 177 * For any medium-to-big changes, where "medium-to-big" is according to your 178 judgment, please bring things up on the `django-developers`_ mailing list 179 before making the change. 180 181 * Write detailed commit messages in the past tense, not present tense. 182 183 * Good: "Fixed Unicode bug in RSS API." 184 * Bad: "Fixes Unicode bug in RSS API." 185 * Bad: "Fixing Unicode bug in RSS API." 186 187 * For commits to a branch, prefix the commit message with the branch name. 188 For example: "magic-removal: Added support for mind reading." 189 190 * Limit commits to the most granular change that makes sense. This means, 191 use frequent small commits rather than infrequent large commits. For 192 example, if implementing feature X requires a small change to library Y, 193 first commit the change to library Y, then commit feature X in a separate 194 commit. This goes a *long way* in helping all core Django developers 195 follow your changes. 196 197 * If your commit closes a ticket in the Django `ticket tracker`_, begin 198 your commit message with the text "Fixed #abc", where "abc" is the number 199 of the ticket your commit fixes. Example: "Fixed #123 -- Added support 200 for foo". We've rigged Subversion and Trac so that any commit message 201 in that format will automatically close the referenced ticket and post a 202 comment to it with the full commit message. 203 204 If your commit closes a ticket and is in a branch, use the branch name 205 first, then the "Fixed #abc." For example: 206 "magic-removal: Fixed #123 -- Added whizbang feature." 207 208 * If your commit references a ticket in the Django `ticket tracker`_ but 209 does *not* close the ticket, include the phrase "Refs #abc", where "abc" 210 is the number of the ticket your commit references. We've rigged 211 Subversion and Trac so that any commit message in that format will 212 automatically post a comment to the appropriate ticket. 213 170 214 Requesting features 171 215 =================== … … 174 218 part of that. Here are some tips on how to most effectively make a request: 175 219 176 * Request the feature on `django-dev `_, not in the ticket tracker; it'll get177 read more closely if it's on the mailing list.220 * Request the feature on `django-developers`_, not in the ticket tracker; 221 it'll get read more closely if it's on the mailing list. 178 222 179 223 * Describe clearly and concisely what the missing feature is and how you'd … … 202 246 encapsulated in a single patch, or changes that need multiple eyes on them -- 203 247 will have dedicated branches. See, for example, the `i18n branch`_. If you 204 have a change of this nature that you'd like to work on, ask on `django-dev`_ for205 a branch to be created for you. We'll create a branch for pretty much any kind of 206 experimenting you'd like to do.248 have a change of this nature that you'd like to work on, ask on 249 `django-developers`_ for a branch to be created for you. We'll create a branch 250 for pretty much any kind of experimenting you'd like to do. 207 251 208 252 We will only branch entire copies of the Django tree, even if work is only … … 214 258 215 259 Once the branch is stable and ready to be merged into the trunk, alert 216 `django-dev `_.260 `django-developers`_. 217 261 218 262 After a branch has been merged, it should be considered "dead"; write access to … … 286 330 287 331 Whenever possible, we strive for a rough consensus. To that end, we'll often 288 have informal votes on django-dev about a feature. In these votes we follow the289 voting style invented by Apache and used on Python itself, where votes are given 290 as +1, +0, -0, or -1. Roughly translated, these votes mean:332 have informal votes on `django-developers`_ about a feature. In these votes we 333 follow the voting style invented by Apache and used on Python itself, where 334 votes are given as +1, +0, -0, or -1. Roughly translated, these votes mean: 291 335 292 336 * +1: "I love the idea and I'm strongly committed to it." … … 299 343 into reality." 300 344 301 Although these votes on django-dev are informal, they'll be taken very345 Although these votes on django-developers are informal, they'll be taken very 302 346 seriously. After a suitable voting period, if an obvious consensus arises 303 347 we'll follow the votes. … … 338 382 .. _community page: http://www.djangoproject.com/community/ 339 383 .. _ticket tracker: http://code.djangoproject.com/newticket 340 .. _django-dev : http://groups.google.com/group/django-developers384 .. _django-developers: http://groups.google.com/group/django-developers 341 385 .. _FAQ: http://www.djangoproject.com/documentation/faq/ 342 386 .. _search the tracker: http://code.djangoproject.com/search django/branches/magic-removal/docs/db-api.txt
r1794 r1873 313 313 314 314 In the above example, each ``Place`` will have a ``get_restaurant()`` method, 315 and each ``Restaurant`` will have a ``get_the place()`` method.315 and each ``Restaurant`` will have a ``get_the_place()`` method. 316 316 317 317 Many-to-one relations django/branches/magic-removal/docs/forms.txt
r1794 r1873 27 27 28 28 class Place(meta.Model): 29 name = meta.CharField(maxlength=100) ,30 address = meta.CharField(maxlength=100, blank=True) ,31 city = meta.CharField(maxlength=50, blank=True) ,32 state = meta.USStateField() ,33 zip_code = meta.CharField(maxlength=5, blank=True) ,29 name = meta.CharField(maxlength=100) 30 address = meta.CharField(maxlength=100, blank=True) 31 city = meta.CharField(maxlength=50, blank=True) 32 state = meta.USStateField() 33 zip_code = meta.CharField(maxlength=5, blank=True) 34 34 place_type = meta.IntegerField(choices=PLACE_TYPES) 35 35 class Meta: django/branches/magic-removal/docs/request_response.txt
r1818 r1873 150 150 (a Python list whose single element is ``value``). Note that this, as 151 151 other dictionary functions that have side effects, can only be called on 152 a n immutable ``QueryDict`` (one that was created via ``copy()``).152 a mutable ``QueryDict`` (one that was created via ``copy()``). 153 153 154 154 * ``__contains__(key)`` -- **New in Django development version.** Returns django/branches/magic-removal/docs/templates_python.txt
r1810 r1873 472 472 473 473 * ``/path/to/myproject/polls/templates/foo.html`` 474 * ``/path/to/myproject/music/templates/ music.html``474 * ``/path/to/myproject/music/templates/foo.html`` 475 475 476 476 Note that the loader performs an optimization when it is first imported:
