Changes between Version 13 and Version 14 of DjangoSpecifications/Core/Threading
- Timestamp:
- Apr 14, 2008, 2:00:01 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DjangoSpecifications/Core/Threading
v13 v14 25 25 See below for raw `grep` results. 26 26 27 ||'''Module'''||'''Globals'''||'''Notes'''|| 28 ||settings and global_settings||?||not reviewed|| 29 ||utils/_decimal.py||lots, including code||not reviewed|| 30 27 31 '''THE FOLLOWING IS WORK IN PROGRESS.''' 28 32 … … 30 34 31 35 FIXME: not reviewed. Replacing the `global_settings` with `settings` -- probably no major issues. 36 37 === utils/_decimal.py === 38 39 FIXME: not reviewed. Lot's of globals, global code as well. 32 40 33 41 === django/contrib/sites/models.py === … … 94 102 95 103 {{{ 96 $ rgrep'^[[:alnum:]_]\+ *= *{' django | egrep -v '(\.svn|_doctest\.py)' | sort104 $ grep -r '^[[:alnum:]_]\+ *= *{' django | egrep -v '(\.svn|_doctest\.py)' | sort 97 105 }}} 98 106 … … 159 167 }}} 160 168 161 Out of these, the following are read-only (i.e. not changed anywhere in code) or otherwise irrelevant: `contrib/admin, formtools tests, localflavor mappings , core/cache, core/handlers, core/serializers/__init__.py:BUILTIN_SERIALIZERS, core/servers, db/backends, db/models/query.py, utils/dates.py, utils/_decimal.py, utils/simplejson, utils/termcolors.py,utils/translation/trans_null.py`.169 Out of these, the following are read-only (i.e. not changed anywhere in code) or otherwise irrelevant: `contrib/admin, formtools tests, localflavor mappings`, `core/cache, core/handlers, core/serializers/__init__.py:BUILTIN_SERIALIZERS`, `core/servers, db/backends, db/models/query.py, utils/dates.py`, `utils/_decimal.py, utils/simplejson, utils/termcolors.py`, `utils/translation/trans_null.py`. 162 170 163 171 `SITE_CACHE` and everything in `django.utils.translation.trans_real` has already been listed under `globals` above. … … 180 188 181 189 {{{ 182 $ rgrep '^[[:alnum:]_]\+ *= *\[' django | egrep -v '(\.svn|_doctest\.py)' | sort190 $ grep -r '^[[:alnum:]_]\+ *= *\[' django | egrep -v '(\.svn|_doctest\.py|__all__)' | sort 183 191 }}} 184 192 … … 186 194 187 195 {{{ 188 django/conf/urls/defaults.py:__all__ = ['handler404', 'handler500', 'include', 'patterns', 'url']189 django/core/servers/basehttp.py:__all__ = ['WSGIServer','WSGIRequestHandler','demo_app']190 django/core/servers/fastcgi.py:__all__ = ["runfastcgi"]191 196 django/db/models/fields/__init__.py:BLANK_CHOICE_DASH = [("", "---------")] 192 197 django/db/models/fields/__init__.py:BLANK_CHOICE_NONE = [("", "None")] 193 198 django/template/__init__.py:builtins = [] 194 199 django/template/loaders/app_directories.py:app_template_dirs = [] 195 django/utils/checksums.py:__all__ = ['luhn',]196 django/utils/_decimal.py:__all__ = [197 200 django/utils/_decimal.py:rounding_functions = [name for name in Decimal.__dict__.keys() if name.startswith('_round_')] 198 201 django/utils/_decimal.py:_signals = [Clamped, DivisionByZero, Inexact, Overflow, Rounded, … … 200 203 django/utils/html.py:LEADING_PUNCTUATION = ['(', '<', '<'] 201 204 django/utils/html.py:TRAILING_PUNCTUATION = ['.', ',', ')', '>', '\n', '>'] 202 django/utils/simplejson/decoder.py:__all__ = ['JSONDecoder']203 205 django/utils/simplejson/decoder.py:ANYTHING = [ 204 django/utils/simplejson/encoder.py:__all__ = ['JSONEncoder'] 205 django/utils/simplejson/__init__.py:__all__ = [ 206 django/utils/simplejson/scanner.py:__all__ = ['Scanner', 'pattern'] 207 django/utils/translation/__init__.py:__all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext', 208 }}} 206 }}} 207 208 Leaving out the irrelevant read-only ones, the following remain: 209 {{{ 210 django/template/__init__.py:builtins = [] 211 django/template/loaders/app_directories.py:app_template_dirs = [] 212 }}} 213 214 As a matter of style, the read-only ones should really be tuples, not lists (the 'say what you mean' idiom -- if it shouldn't be modified, make it a tuple).