<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/django/core/serializers/python.py, branch 1.7</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=1.7</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=1.7'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2014-01-26T12:08:05Z</updated>
<entry>
<title>Took advantage of the new get_model API. Refs #21702.</title>
<updated>2014-01-26T12:08:05Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2014-01-26T11:57:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=f901b4d6c869f4cfb4fc28a861c481f28e46bb3f'/>
<id>urn:sha1:f901b4d6c869f4cfb4fc28a861c481f28e46bb3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stopped populating the app registry as a side effect.</title>
<updated>2013-12-30T21:11:17Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-30T14:42:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=80d74097b4bd7186ad99b6d41d0ed90347a39b21'/>
<id>urn:sha1:80d74097b4bd7186ad99b6d41d0ed90347a39b21</id>
<content type='text'>
Since it triggers imports, it shouldn't be done lightly.

This commit adds a public API for doing it explicitly, django.setup(),
and does it automatically when using manage.py and wsgi.py.
</content>
</entry>
<entry>
<title>Changed get_model to raise an exception on errors.</title>
<updated>2013-12-28T19:53:00Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-28T13:55:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ba7206cd81458865bace85914905392291b05829'/>
<id>urn:sha1:ba7206cd81458865bace85914905392291b05829</id>
<content type='text'>
Returning None on errors required unpythonic error checking and was
inconsistent with get_app_config.

get_model was a private API until the previous commit, but given that it
was certainly used in third party software, the change is explained in
the release notes.

Applied the same change to get_registered_model, which is a new private
API introduced during the recent refactoring.
</content>
</entry>
<entry>
<title>Renamed AppCache to Apps.</title>
<updated>2013-12-24T11:25:17Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-24T11:25:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1716b7ce5a02b2a77188dfea2d41e25dfa58821c'/>
<id>urn:sha1:1716b7ce5a02b2a77188dfea2d41e25dfa58821c</id>
<content type='text'>
Also renamed app_cache to apps and "app cache" to "app registry".

Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
</content>
</entry>
<entry>
<title>Moved apps back in the toplevel django namespace.</title>
<updated>2013-12-22T10:39:55Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-22T10:35:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=2fef9e5375b0267734392080858d9fced15ee2f9'/>
<id>urn:sha1:2fef9e5375b0267734392080858d9fced15ee2f9</id>
<content type='text'>
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
</content>
</entry>
<entry>
<title>Terminated AppCache._populate() with extreme prejudice.</title>
<updated>2013-12-22T10:39:17Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-18T13:49:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=86804ab063cb9666b69638372abfe4174a2472b2'/>
<id>urn:sha1:86804ab063cb9666b69638372abfe4174a2472b2</id>
<content type='text'>
It was called _populate() before I renamed it to populate(). Since it
has been superseded by populate_models() there's no reason to keep it.

Removed the can_postpone argument of load_app() as it was only used by
populate(). It's a private API and there's no replacement. Simplified
load_app() accordingly. Then new version behaves exactly like the old
one even though it's much shorter.
</content>
</entry>
<entry>
<title>Moved the new app cache inside core.</title>
<updated>2013-12-17T09:17:46Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-16T10:52:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2'/>
<id>urn:sha1:4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed the _-prefix for populate().</title>
<updated>2013-12-17T09:17:45Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-14T08:50:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d44de9b933fb7d987d814034769a1ba2eda6545c'/>
<id>urn:sha1:d44de9b933fb7d987d814034769a1ba2eda6545c</id>
<content type='text'>
Several parts of Django call get_apps() with a comment along this lines
of "this has the side effect of calling _populate()". I fail to see how
this is better than just calling populate()!
</content>
</entry>
<entry>
<title>Removed module-level functions for the app cache.</title>
<updated>2013-12-17T09:17:44Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-12-11T22:31:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=8662654d6d50e4d89f771a757ae5fc83c6b74db0'/>
<id>urn:sha1:8662654d6d50e4d89f771a757ae5fc83c6b74db0</id>
<content type='text'>
Since the original ones in django.db.models.loading were kept only for
backwards compatibility, there's no need to recreate them. However, many
internals of Django still relied on them.

They were also imported in django.db.models. They never appear in the
documentation, except a quick mention of get_models and get_app in the
1.2 release notes to document an edge case in GIS. I don't think that
makes them a public API.

This commit doesn't change the overall amount of global state but
clarifies that it's tied to the app_cache object instead of hiding it
behind half a dozen functions.
</content>
</entry>
<entry>
<title>More attacking E302 violators</title>
<updated>2013-11-02T20:12:09Z</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2013-11-02T20:12:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=7548aa8ffd46eb6e0f73730d1b2eb515ba581f95'/>
<id>urn:sha1:7548aa8ffd46eb6e0f73730d1b2eb515ba581f95</id>
<content type='text'>
</content>
</entry>
</feed>
