- 24 Ara, 2013 7 kayıt (commit)
-
-
Aymeric Augustin yazdı
-
Claude Paroz yazdı
GEOS 3.3 added crosses, disjoint, overlaps, touches and within predicates on prepared geometries.
-
Claude Paroz yazdı
-
Claude Paroz yazdı
Thanks Robert Scott for the report.
-
Aymeric Augustin yazdı
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
Invalidate properly the cache whenever all_models or app_configs change. This fixes some isolation issues in the test suite.
-
- 23 Ara, 2013 8 kayıt (commit)
-
-
Aymeric Augustin yazdı
Previously, this would corrupt the settings, because __exit__ isn't called when __enter__raises an exception.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
It's now easier to achieve the same effect with modify_settings or override_settings.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
* Introduced [un]set_installed_apps to handle changes to the INSTALLED_APPS setting. * Refactored [un]set_available_apps to share its implementation with [un]set_installed_apps. * Implemented a receiver to clear some app-related caches. * Removed test_missing_app as it is basically impossible to reproduce this situation with public methods of the new app cache.
-
Claude Paroz yazdı
-
- 22 Ara, 2013 25 kayıt (commit)
-
-
Marc Tamlyn yazdı
It was not used inside Django, is not tested or documented. Consequently remove without deprecation path. Thanks to @vajrasky for bringing it to our attention.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
That matches its return type better.
-
Aymeric Augustin yazdı
That matches its name ad its purpose better.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
It is a public API.
-
Aymeric Augustin yazdı
Reverted 4a56a93c.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
Currently such overrides aren't reflected in the app cache. It would be possible to handle them. But that doesn't look like a very good API. It makes it complicated to express "add this app" and "remove this app", which are the most common operations on INSTALLED_APPS.
-
Aymeric Augustin yazdı
- Tested consistency the current app_configs instead of INSTALLED_APPS. - Considered applications added with _with_app as available. - Added docstrings.
-
Aymeric Augustin yazdı
Except the app cache code and a few specific tests, of course.
-
Aymeric Augustin yazdı
Removed some exception masking in the comments app that was harmful and couldn't be preserved easily.
-
Aymeric Augustin yazdı
This avoids possible confusion with register_model. Thanks Marc Tamlyn for the suggestion.
-
Aymeric Augustin yazdı
Used the app cache's get_app_configs() method instead.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
Took this opportunity to change get_app[s] to only consider applications containing a model module as that seems slightly more backwards compatible. Since callers that care about models pass only_with_models_module=True, this has very few consequences. Only AppCommand needed a change.
-
Aymeric Augustin yazdı
Adjusted several tests that used it to add apps to the app cache and then attempted to remove them by manipulating attributes directly. Also renamed invalid_models to invalid_models_tests to avoid clashing application labels between the outer and the inner invalid_models applications.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
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.
-
Aymeric Augustin yazdı
First stage imports app modules. It doesn't catch import errors. This matches the previous behavior and keeps the code simple. Second stage import models modules. It catches import errors and retries them after walking through the entire list once. This matches the previous behavior and seems useful. populate_models() is intended to be equivalent to populate(). It isn't wired yet. That is coming in the next commit.
-
Aymeric Augustin yazdı
Since applications that aren't installed no longer have an application configuration, it is now always True in practice. Provided an abstraction to temporarily add or remove applications as several tests messed with app_config.installed to achieve this effect. For now this API is _-prefixed because it looks dangerous.
-
Aymeric Augustin yazdı
It wasn't used anywhere and couldn't be implemented any more since non-installed apps no longer have a configuration.
-