Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/serializers/xml_serializer.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-8/+11
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Fixed #25050 -- Allowed serialization of models with ↵Grégoire ROCHER2015-07-021-1/+2
| | | | deferred fields.
* Fixed #20197 -- Made XML serializer fail loudly when ↵Claude Paroz2015-06-191-2/+8
| | | | | | outputting unserializable chars Thanks Tim Graham for the review.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-2/+2
|
* Fixed #24558 -- Made dumpdata mapping ordering ↵Simon Charette2015-04-021-10/+11
| | | | | | deterministic. Thanks to gfairchild for the report and Claude for the review.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-17/+17
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+6
|
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-2/+2
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-041-1/+1
|
* Took advantage of the new get_model API. Refs #21702.Aymeric Augustin2014-01-261-2/+1
|
* Changed get_model to raise an exception on errors.Aymeric Augustin2013-12-281-3/+1
| | | | | | | | | | | | 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.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-1/+2
| | | | | | | | | | | | | | | 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.
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+2
|
* Fixed all the E203 violationsAlex Gaynor2013-10-271-7/+7
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-4/+4
|
* Fixed #21267 -- Fixed E502 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #13252 -- Added ability to serialize with natural ↵Tai Lee2013-10-111-18/+14
| | | | | | | | | | | | | | primary keys. Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
* Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham2013-09-031-1/+1
|
* Fixed #19998 -- Fixed --ignorenonexistent support for ↵Christoph Sieghart2013-03-301-1/+5
| | | | XML based fixtures.
* Restrict the XML deserializer to prevent network and ↵Carl Meyer2013-02-191-1/+94
| | | | | | entity-expansion DoS attacks. This is a security fix. Disclosure and advisory coming shortly.
* Fixed #18963 -- Used a subclass-friendly patternAymeric Augustin2012-11-031-2/+0
| | | | for Python 2 object model compatibility methods.
* [py3] Renamed `next` to `__next__` in iterators.Aymeric Augustin2012-08-091-1/+3
| | | | See PEP 3114. `next` is retained as an alias for Python 2.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-9/+9
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-1/+3
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Fixed #17602 -- Stopped the XML serializer from doing ↵Jannis Leidel2012-02-041-10/+5
| | | | | | unneeded queries. Thanks, gnosek. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Reverting r14994 (at request of SmileyChris) because of ↵Russell Keith-Magee2010-12-211-13/+18
| | | | | | some backwards compatibility issues that need to be resolved. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixes #13252 -- Use the natural key instead of the ↵Chris Beaven2010-12-211-18/+13
| | | | | | primary key when serializing git-svn-id: http://code.djangoproject.com/svn/django/trunk@14994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11486 -- Corrected the XML serializer to allow ↵Russell Keith-Magee2010-09-191-9/+16
| | | | | | for the serialization of objects with a null PK value. Also includes migration of doctests to unittests (we have always been at war with doctests). Thanks to zdmytriv for the report, and Niall Kelly for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13030 -- Corrected natural key deserialization to ↵Russell Keith-Magee2010-03-181-0/+4
| | | | | | subclasses. Thanks to yishaibeeri for the report and test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-3/+4
| | | | | | | | | | | | | | | | | This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7052 -- Added support for natural keys in ↵Russell Keith-Magee2009-12-141-12/+62
| | | | | | serialization. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10109 -- Removed the use of raw SQL in ↵Russell Keith-Magee2009-11-031-2/+1
| | | | | | | | many-to-many fields by introducing an autogenerated through model. This is the first part of Alex Gaynor's GSoC project to add Multi-db support to Django. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9522 -- Modified handling of values in base ↵Russell Keith-Magee2009-04-131-4/+2
| | | | | | serializer so that field subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8134 -- Corrected serialization of m2m fields ↵Russell Keith-Magee2008-08-121-4/+5
| | | | | | with intermediate models. Thanks to Rock Howard for the report, and kire for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4558 -- Modified XML serializer to handle ↵Russell Keith-Magee2007-07-201-2/+2
| | | | | | whitespace better around None tags. Thanks to Bill Fenner <fenner@gmail.com> for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged Unicode branch into trunk (r4952:5608). This ↵Malcolm Tredinnick2007-07-041-40/+42
| | | | | | | | | | | should be fully backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a serialization problem with objects that have a ↵Russell Keith-Magee2007-05-281-1/+7
| | | | | | foreign key on an object whose primary key is a OneToOneField. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4288 -- Modified serializers to pay attention to ↵Russell Keith-Magee2007-05-141-2/+2
| | | | | | the to_field attribute on ForeignKeys. Thanks to Sandro Dentella for the report and the helpful test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added implementation of --indent for the XML serializer.Russell Keith-Magee2007-03-151-0/+9
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added various fixes to serializer implementations. Fixes ↵Russell Keith-Magee2007-03-131-11/+20
| | | | | | mostly deal with handling nulls, non-integer primary key values (e.g., OneToOne fields or strings), and reconstruction of primary key references in related fields. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3390: the serializer can now contain forward ↵Jacob Kaplan-Moss2007-02-261-13/+3
| | | | | | references. Thanks, Russ. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2894: XML deserializer now correctly handles null ↵Jacob Kaplan-Moss2006-11-071-1/+5
| | | | | | primary keys. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added a JSON serializer, a few more tests, and a couple ↵Jacob Kaplan-Moss2006-06-291-7/+6
| | | | | | more lines of docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added initial cut at serialization framework, along with ↵Jacob Kaplan-Moss2006-06-281-0/+218
some basic tests and a stab at some docs. This is all a bit rough right now, so expect some bumps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37