summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/polymorph2.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-1107/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* - removed test.testing.ORMTest, test.fixtures, and allMike Bayer2009-06-021-20/+20
| | | | dependencies on those.
* - Fixed bug in relation(), introduced in 0.5.3,Mike Bayer2009-04-021-0/+45
| | | | | | whereby a self referential relation from a base class to a joined-table subclass would not configure correctly.
* - The "clear()", "save()", "update()", "save_or_update()"Mike Bayer2009-01-171-44/+44
| | | | | | Session methods have been deprecated, replaced by "expunge_all()" and "add()". "expunge_all()" has also been added to ScopedSession.
* - comparator_factory is accepted by all MapperProperty constructors. ↵Mike Bayer2008-11-241-13/+13
| | | | | | | | | | | | [ticket:1149] - added other unit tests as per [ticket:1149] - rewrote most of the "joined table inheritance" documentation section, removed badly out of date "polymorphic_fetch" and "select_table" arguments. - "select_table" raises a deprecation warning. converted unit tests to not use it. - removed all references to "ORDER BY table.oid" from mapping docs. - renamed PropertyLoader to RelationProperty. Old symbol remains. - renamed ColumnProperty.ColumnComparator to ColumnProperty.Comparator. Old symbol remains.
* Global propigate -> propagate change to correct spelling. Additionally found ↵Michael Trier2008-11-091-1/+1
| | | | a couple of insures that should be ensure.
* Corrected some ordering issues with tests.Michael Trier2008-11-021-1/+1
|
* - logging scale-back; the echo_uow flag on Session is deprecated, and unit ↵Mike Bayer2008-08-241-1/+1
| | | | | | | | | | | | of work logging is now class level like all the other logging. - trimmed back the logging API, centralized class_logger() as the single point of configuration for logging, removed per-instance logging checks from ORM. - Engine and Pool logging remain at the instance level. The modulus of "instance ids" has been upped to 65535. I'd like to remove the modulus altogether but I do see a couple of users each month calling create_engine() on a per-request basis, an incorrect practice but I'd rather their applications don't just run out of memory.
* - fixed a bug in declarative test which was looking for old version of historyMike Bayer2008-08-191-1/+1
| | | | | | | | | | - Added "sorted_tables" accessor to MetaData, which returns Table objects sorted in order of dependency as a list. This deprecates the MetaData.table_iterator() method. The "reverse=False" keyword argument has also been removed from util.sort_tables(); use the Python 'reversed' function to reverse the results. [ticket:1033]
* - PropertyLoader.foreign_keys becomes privateMike Bayer2008-05-241-1/+1
| | | | | - removed most __foo() defs from properties.py - complexity reduction in PropertyLoader.do_init()
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-14/+14
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - merged sync_simplify branchMike Bayer2008-04-041-14/+6
| | | | | | | | | | | | | | | | - The methodology behind "primaryjoin"/"secondaryjoin" has been refactored. Behavior should be slightly more intelligent, primarily in terms of error messages which have been pared down to be more readable. In a slight number of scenarios it can better resolve the correct foreign key than before. - moved collections unit test from relationships.py to collection.py - PropertyLoader now has "synchronize_pairs" and "equated_pairs" collections which allow easy access to the source/destination parent/child relation between columns (might change names) - factored out ClauseSynchronizer (finally) - added many more tests for priamryjoin/secondaryjoin error checks
* - merged with_polymorphic branch, which was merged with query_columns branchMike Bayer2008-03-291-8/+15
| | | | | | | | | | | | | | | | | - removes everything to do with select_table, which remains as a keyword argument synonymous with with_polymorphic=('*', select_table). - all "polymorphic" selectables find their way to Query by way of _set_select_from() now, so that all joins/aliasing/eager loads/etc. is handled consistently. Mapper has methods for producing polymorphic selectables so that Query and eagerloaders alike can get to them. - row aliasing simplified, so that they don't need to nest. they only need the source selectable and adapt to whatever incoming columns they get. - Query is more egalitarian about mappers/columns now. Still has a strong sense of "entity zero", but also introduces new unpublished/experimental _values() method which sets up a columns-only query. - Query.order_by() and Query.group_by() take *args now (also still take a list, will likely deprecate in 0.5). May want to do this for select() as well. - the existing "check for False discriminiator" "fix" was not working completely, added coverage - orphan detection was broken when the target object was a subclass of the mapper with the orphaned relation, fixed that too.
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-1/+1
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - Fixed bug in polymorphic inheritance where incorrectMike Bayer2008-01-271-1/+49
| | | | | | | exception is raised when base polymorphic_on column does not correspond to any columns within the local selectable of an inheriting mapper more than one level deep
* - Restored 2.3 compat. in lib/sqlalchemyJason Kirtland2008-01-191-1/+3
| | | | | | | - Part one of test suite fixes to run on 2.3 Lots of failures still around sets; sets.Set differs from __builtin__.set particularly in the binops. We depend on set extensively now and may need to provide a corrected sets.Set subclass on 2.3.
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-4/+4
| | | | | | - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
* test suite deprecation rampageJason Kirtland2008-01-091-95/+101
|
* - fixed bug where Query would not apply a subquery to the SQL when LIMITMike Bayer2007-11-291-11/+63
| | | | | was used in conjunction with an inheriting mapper where the eager loader was only in the parent mapper.
* - rewrote and simplified the system used to "target" columns acrossMike Bayer2007-11-051-8/+0
| | | | | | | | | | | | | | | | | | selectable expressions. On the SQL side this is represented by the "corresponding_column()" method. This method is used heavily by the ORM to "adapt" elements of an expression to similar, aliased expressions, as well as to target result set columns originally bound to a table or selectable to an aliased, "corresponding" expression. The new rewrite features completely consistent and accurate behavior. - the "orig_set" and "distance" elements as well as all associated fanfare are gone (hooray !) - columns now have an optional "proxies" list which is a list of all columns they are a "proxy" for; only CompoundSelect cols proxy more than one column (just like before). set operations are used to determine lineage. - CompoundSelects (i.e. unions) only create one public-facing proxy column per column name. primary key collections come out with just one column per embedded PK column. - made the alias used by eager load limited subquery anonymous.
* change the in_ API to accept a sequence or a selectable [ticket:750]Ants Aasma2007-10-161-1/+1
|
* - mapper compilation has been reorganized such that most compilationMike Bayer2007-09-021-1/+2
| | | | | | | | | | occurs upon mapper construction. this allows us to have fewer calls to mapper.compile() and also to allow class-based properties to force a compilation (i.e. User.addresses == 7 will compile all mappers; this is [ticket:758]). The only caveat here is that an inheriting mapper now looks for its inherited mapper upon construction; so mappers within inheritance relationships need to be constructed in inheritance order (which should be the normal case anyway).
* `from foo import (name, name)` isn't valid syntax for 2.3. ah well.Jason Kirtland2007-08-211-0/+1
| | | | omitting modules from sqlalchemy.__all__...
* - fix for [ticket:712], more unit testsMike Bayer2007-08-041-2/+6
|
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-0/+957
maintenance branch in branches/rel_0_3.