Changes between Version 13 and Version 14 of DjangoSpecifications/Core/Threading


Ignore:
Timestamp:
Apr 14, 2008, 2:00:01 AM (16 years ago)
Author:
mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoSpecifications/Core/Threading

    v13 v14  
    2525See below for raw `grep` results.
    2626
     27||'''Module'''||'''Globals'''||'''Notes'''||
     28||settings and global_settings||?||not reviewed||
     29||utils/_decimal.py||lots, including code||not reviewed||
     30
    2731'''THE FOLLOWING IS WORK IN PROGRESS.'''
    2832
     
    3034
    3135FIXME: not reviewed. Replacing the `global_settings` with `settings` -- probably no major issues.
     36
     37=== utils/_decimal.py ===
     38
     39FIXME: not reviewed. Lot's of globals, global code as well.
    3240
    3341=== django/contrib/sites/models.py ===
     
    94102
    95103{{{
    96 $ rgrep '^[[:alnum:]_]\+ *= *{' django | egrep -v '(\.svn|_doctest\.py)' | sort
     104$ grep -r '^[[:alnum:]_]\+ *= *{' django | egrep -v '(\.svn|_doctest\.py)' | sort
    97105}}}
    98106
     
    159167}}}
    160168
    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`.
     169Out 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`.
    162170
    163171`SITE_CACHE` and everything in `django.utils.translation.trans_real` has already been listed under `globals` above.
     
    180188
    181189{{{
    182 $ rgrep '^[[:alnum:]_]\+ *= *\[' django | egrep -v '(\.svn|_doctest\.py)' | sort
     190$ grep -r '^[[:alnum:]_]\+ *= *\[' django | egrep -v '(\.svn|_doctest\.py|__all__)' | sort
    183191}}}
    184192
     
    186194
    187195{{{
    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"]
    191196django/db/models/fields/__init__.py:BLANK_CHOICE_DASH = [("", "---------")]
    192197django/db/models/fields/__init__.py:BLANK_CHOICE_NONE = [("", "None")]
    193198django/template/__init__.py:builtins = []
    194199django/template/loaders/app_directories.py:app_template_dirs = []
    195 django/utils/checksums.py:__all__ = ['luhn',]
    196 django/utils/_decimal.py:__all__ = [
    197200django/utils/_decimal.py:rounding_functions = [name for name in Decimal.__dict__.keys() if name.startswith('_round_')]
    198201django/utils/_decimal.py:_signals = [Clamped, DivisionByZero, Inexact, Overflow, Rounded,
     
    200203django/utils/html.py:LEADING_PUNCTUATION  = ['(', '<', '&lt;']
    201204django/utils/html.py:TRAILING_PUNCTUATION = ['.', ',', ')', '>', '\n', '&gt;']
    202 django/utils/simplejson/decoder.py:__all__ = ['JSONDecoder']
    203205django/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
     208Leaving out the irrelevant read-only ones, the following remain:
     209{{{
     210django/template/__init__.py:builtins = []
     211django/template/loaders/app_directories.py:app_template_dirs = []
     212}}}
     213
     214As 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).
Back to Top