Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type conversions refactorization #16

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
430f6af
NonrelDatabaseOperations: added comments and reordered methods to mat…
wrwrwr Jan 19, 2012
faba083
Also override the standard deconversion method (currently not called …
wrwrwr Jan 19, 2012
98a870a
Use an abstract key type for storing primary and foreign keys.
wrwrwr Jan 19, 2012
6803ab8
Trying to explain convert_value_to/from_db.
wrwrwr Jan 19, 2012
1b9eeea
Coded an explicit workaround for Django providing get_db_prep_save ra…
wrwrwr Jan 19, 2012
89ed2d3
Better comment for data_types.
wrwrwr Jan 19, 2012
9bd5935
Moved DecimalField workaround to lookup value normalization. Added so…
wrwrwr Jan 20, 2012
5301979
Provide reference implementations for iterable fields processing.
wrwrwr Jan 20, 2012
8ccf890
Subtype splitting in one place.
wrwrwr Jan 20, 2012
11fe1bd
Also call the standard DatabaseOperations.convert_values (after conve…
wrwrwr Jan 20, 2012
c46b92d
Replaced lazy object handling with what it probably was meant to be.
wrwrwr Jan 21, 2012
510c14d
Also default to the abstract key for references (foreign keys, relati…
wrwrwr Jan 22, 2012
6c2bcb2
Replaced string_based_auto_field feature with has_key_type, default t…
wrwrwr Jan 22, 2012
573c60f
Use types for iterable fields better fitting the current framework, a…
wrwrwr Jan 22, 2012
fabca32
Test lists of referenes (ListField with ForeignKeys).
wrwrwr Jan 23, 2012
aa69d0b
Moved additional conversion methods to DatabaseOperations, where they…
wrwrwr Jan 23, 2012
cf15381
Match Django and subclasses inheritances.
wrwrwr Jan 23, 2012
d19b319
Added a test for lists with keys. See issue #10.
wrwrwr Jan 23, 2012
96adef5
Iterable field lookup values also need to be converted using db_subtype.
wrwrwr Jan 24, 2012
7616383
Pass field to compiler conversion methods (needed for table / kind lo…
wrwrwr Jan 24, 2012
7d3bcb8
For related objects convert the value using related model's table nam…
wrwrwr Jan 24, 2012
10ccb09
Combine all info needed for encoding / decoding into a single (nested…
wrwrwr Jan 24, 2012
52d857b
Convert Django's strings marked as safe or needing escape (Safe/Escap…
wrwrwr Jan 25, 2012
6aa9f56
Let back-ends decide what they want to allow for AutoFields, the requ…
wrwrwr Jan 25, 2012
4be6391
Pass also field internal type to conversions -- needed to fill some b…
wrwrwr Jan 26, 2012
1471ede
Added infrastructure that can be used to extend fields for which prim…
wrwrwr Jan 26, 2012
4a15359
Added tests for marked strings (mysterious isinstance(str)).
wrwrwr Jan 26, 2012
2a82c3d
Bring back constant internal types for nonrel fields -- this may matt…
wrwrwr Jan 27, 2012
c715534
A bit more elaborate solution is needed to determine db_infos of valu…
wrwrwr Jan 28, 2012
c03b48c
Memoize db_info on field to improve performance for typed collection …
wrwrwr Jan 28, 2012
f484dd5
Do not preclude the database cannot store sets directly; also convert…
wrwrwr Jan 28, 2012
5db765f
Support using "list" db_type for SetField.
wrwrwr Jan 28, 2012
20ebdd5
Use "string" and "bytes" rather than the GAE specific "text"/"longtex…
wrwrwr Jan 28, 2012
58d9e94
Distinguish between filtering and storage conversions, rather than do…
wrwrwr Jan 28, 2012
3f652ec
Pushed EmbeddedModelField dict encoding / instance recreation down to…
wrwrwr Jan 30, 2012
90469fd
Added "single" to the name of the feature deciding about the db_type …
wrwrwr Jan 30, 2012
913bfa9
Moved db_table logic to GAE before removing db_info; if there are mor…
wrwrwr Jan 30, 2012
9a74050
Rewritten conversions without the additional db_info / value_field fr…
wrwrwr Jan 30, 2012
a5af038
Support list (of pairs) storage for DictField and EmbeddedModelField.
wrwrwr Jan 30, 2012
fa4248b
Use flat list for dict or instance storage.
wrwrwr Jan 31, 2012
510cba0
Test with a nested list -- marked for skipping as there is no reasona…
wrwrwr Jan 31, 2012
c49f2ef
Always pass embedded_instance to storage preprocessing -- it may be u…
wrwrwr Jan 31, 2012
c820fdb
Preliminary tests for the list with foreign keys natural usage issue …
wrwrwr Jan 31, 2012
7af0874
Override db_type of key fields even for fields defining their own db_…
wrwrwr Feb 1, 2012
f63e7e1
Change the field passed to conversions for _set queries to match the …
wrwrwr Feb 1, 2012
dfa58c0
Made the test about using model instances rather than foreign keys wi…
wrwrwr Feb 1, 2012
ef87e04
Test for list with embedded instances update problem (issue #13).
wrwrwr Feb 2, 2012
5bd50f8
Pass the right connection to Field.db_type calls.
wrwrwr Feb 2, 2012
15a13be
Improved the embedded instance update test.
wrwrwr Feb 2, 2012
a930c88
Compatibility with Mongo's LegacyEmbeddedModelField (pre-0.2 data); a…
wrwrwr Feb 2, 2012
6d3589f
Default to not allowing collection / embedded model fields to be used…
wrwrwr Feb 3, 2012
ece7095
Merge branch 'develop' into feature/type-conversions-refactor.
wrwrwr Feb 3, 2012
a5173a1
Introduced changes fixing EmbeddedModelField.update (issue #13). Patc…
wrwrwr Feb 3, 2012
324b060
Made conversion method names shorter and more similar to what Django …
wrwrwr Feb 4, 2012
e47811c
Code handling type conversions for collections and embedded models sp…
wrwrwr Feb 4, 2012
3a10484
Moved LegacyEmbeddedModelField as it can be now also used to avoid db…
wrwrwr Feb 4, 2012
11cb5b9
Use nonrel_db_type to determine db_types of items / values -- necessa…
wrwrwr Feb 4, 2012
9c80a73
Moved model class info serialization / deserialization back to Embedd…
wrwrwr Feb 5, 2012
e7bc7f6
Make SQLInsertCompiler pass a mapping with field keys rather than col…
wrwrwr Feb 6, 2012
ab1b7e5
Make SQLInsertCompiler pass a mapping with field keys rather than col…
wrwrwr Feb 6, 2012
32f873c
Subfield type conversion avoidance for LegacyEmbeddedModelField that …
wrwrwr Feb 6, 2012
ae0338d
Support serialized formats for collection and embedded fields out-of-…
wrwrwr Feb 6, 2012
f789e1d
Removed the supports_dict feature; if it can't store dicts nor nested…
wrwrwr Feb 6, 2012
4d90aec
Python 2.5 compatibility.
wrwrwr Feb 6, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading