Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer ccf77190f9 merge tip 2010-11-18 18:54:48 -05:00
Mike Bayer 09a82f90e6 merge tip 2010-11-18 18:49:42 -05:00
Mike Bayer d0dc622df8 - Added active_history flag to relationship()
and column_property(), forces attribute events to
always load the "old" value, so that it's available to
attributes.get_history(). [ticket:1961]
- modernize test_relationship, give test classes meaningful names
2010-11-18 14:55:19 -05:00
Mike Bayer 98674959d2 - initial patch for [ticket:1926] 2010-11-17 17:54:52 -05:00
Mike Bayer c5ccedfdfd - primary_key arg to mapper() is a list
- other modernizations to mapper() doc
2010-11-16 17:42:18 -05:00
Mike Bayer d01a6f0887 - add a few choice TypeDecorator recipes 2010-11-15 09:12:45 -05:00
Mike Bayer e85871c612 merge tip 2010-11-14 17:53:57 -05:00
Mike Bayer 4ac3240679 - SessionEvents is on board and the event model is done, can start building 0.7 tip soon 2010-11-14 17:51:54 -05:00
Mike Bayer 80d1aaa661 - event documentation bonanza 2010-11-14 15:54:37 -05:00
Mike Bayer 06bf218ed3 - add helpstring for site-mako 2010-11-14 14:02:11 -05:00
Mike Bayer 6d630990dd merge tip 2010-11-13 15:53:32 -05:00
Mike Bayer 3564ea86e7 - move deprecated interfaces down to bottom of TOC, update verbiage
- more docs for engine, pool, DDL events
- update DDL sequences documentation to use events
- update DDL() docstring to refer to execute_if()
- document parameters for DDLElement.execute_if()
- add retval=True flag to Engine.on_before_execute(), on_before_cursor_execute().
wrap the function if retval=False, check for appropriate usage of the flag, add
tests.
- remove ScopedSession.mapper and tests entirely
- remove ExtensionCarrier and tests
- change remaining tests that use MapperExtension to use MapperEvents
2010-11-10 19:00:28 -05:00
Mike Bayer a9b270a3ed - basic docs
- poolevent accepts Engine as a target
2010-11-09 17:35:24 -05:00
Mike Bayer 6dfdc94739 stupid tab got committed 2010-11-09 12:19:11 -05:00
Mike Bayer 1ce6b7c9b5 add a note to use column_property with declarative map to a join 2010-11-09 12:09:41 -05:00
Mike Bayer 4e2c0f10cd - merge tip 2010-11-06 11:49:45 -04:00
Mike Bayer 4700d344de further edits 2010-11-01 16:07:47 -04:00
Mike Bayer 125c7e2dbb - write a new section describing the "subtransactions=True" flag in full detail 2010-11-01 15:59:53 -04:00
Mike Bayer f86d8a877b - engine status updates 2010-10-24 16:08:14 -04:00
Mike Bayer 79c25ede44 - Added type_coerce(expr, type_) expression element.
Treats the given expression as the given type when evaluating
expressions and processing result rows, but does not
affect the generation of SQL, other than an anonymous label.
2010-10-23 16:40:39 -04:00
Mike Bayer 25c08f6def merge tip 2010-10-02 11:00:22 -04:00
Mike Bayer 761b4f29e2 - *Major* cleanup / modernization of the Informix
dialect for 0.6, courtesy Florian Apolloner.
[ticket:1906]
2010-10-01 21:26:05 -04:00
Mike Bayer 846c9e1705 correct that only MySQL doesn't support CHECK constraints, [ticket:1927] 2010-10-01 20:40:56 -04:00
Mike Bayer 0fff5da2eb - Make it clear that the second mapping of User is against User.__table__, [ticket:1934] 2010-10-01 20:39:35 -04:00
Mike Bayer 2811ca2106 - add Sphinx 1.0 makefile and config options, [ticket:1929] 2010-09-29 01:52:25 -04:00
Mike Bayer abc8e45b2f @mapperproperty -> @declared_attr 2010-09-27 10:01:48 -04:00
Mike Bayer 6b911a5267 for internal link to top render # 2010-09-26 12:55:51 -04:00
Mike Bayer 1ff666ffdf - @classproperty 's official name/location for usage
with declarative is sqlalchemy.ext.declarative.mapperproperty.
Same thing, but moving there since it is more of a
"marker" that's specific to declararative,
not just an attribute technique.  [ticket:1915]
2010-09-25 19:25:31 -04:00
Mike Bayer 21d2a6d790 doc edits 2010-09-23 19:24:28 -04:00
Mike Bayer 30e4b186f2 doc edits 2010-09-22 23:48:17 -04:00
Mike Bayer eae4de02a9 - in depth docs about some merge() tips
- docs about backref cascade
- Another new flag on relationship(), cascade_backrefs,
disables the "save-update" cascade when the event was
initiated on the "reverse" side of a bidirectional
relationship.   This is a cleaner behavior so that
many-to-ones can be set on a transient object without
it getting sucked into the child object's session,
while still allowing the forward collection to
cascade.   We *might* default this to False in 0.7.
2010-09-22 14:22:16 -04:00
Mike Bayer 80ea586a55 remove the quick select from 0.6 2010-09-15 12:03:18 -04:00
Mike Bayer 60b82d6e13 - merge tip, 0.6.4 + 0.6.5 2010-09-14 17:37:27 -04:00
Chris Withers 439d57ddaf fix typo 2010-09-13 17:11:53 +01:00
Mike Bayer 71749b35d6 merge tip 2010-09-12 19:18:29 -04:00
Mike Bayer fe250af8eb - lazy loads for relationship attributes now use
the current state, not the "committed" state,
of foreign and primary key attributes
when issuing SQL, if a flush is not in process.
Previously, only the database-committed state would
be used.  In particular, this would cause a many-to-one
get()-on-lazyload operation to fail, as autoflush
is not triggered on these loads when the attributes are
determined and the "committed" state may not be
available.  [ticket:1910]

- A new flag on relationship(), load_on_pending, allows
the lazy loader to fire off on pending objects without a
flush taking place, as well as a transient object that's
been manually "attached" to the session. Note that this
flag blocks attribute events from taking place when an
object is loaded, so backrefs aren't available until
after a flush. The flag is only intended for very
specific use cases.
2010-09-12 19:18:08 -04:00
Mike Bayer 2fffc4072f - user-contributed .sty file now works with the latest sphinx, [ticket:1911] 2010-09-12 12:49:30 -04:00
Mike Bayer 109345550e merge tip 2010-09-12 12:38:15 -04:00
Mike Bayer bad4493842 - Slight improvement to the behavior of "passive_updates=False"
when placed only on the many-to-one side of a
    relationship; documentation has been clarified
    that passive_updates=False should really be on the
    one-to-many side.

  - Placing passive_deletes=True on a many-to-one emits
    a warning, since you probably intended to put it on
    the one-to-many side.
2010-09-12 12:37:43 -04:00
Mike Bayer d7df1334d0 typo #2 2010-09-09 20:08:47 -04:00
Mike Bayer 5e6e7546bd typo 2010-09-09 20:07:05 -04:00
Mike Bayer 9674b4bf17 - collection docs
- Added an assertion during flush which ensures
that no NULL-holding identity keys were generated
on "newly persistent" objects.
This can occur when user defined code inadvertently
triggers flushes on not-fully-loaded objects.
2010-09-09 19:21:23 -04:00
Mike Bayer a48ee1b397 - add doc pages for exceptions 2010-09-09 09:24:55 -04:00
Mike Bayer ce7768e313 doc edits 2010-09-08 23:06:40 -04:00
Mike Bayer 10fd828087 you'll all miss the last of the ASCII art 2010-09-08 22:39:11 -04:00
Mike Bayer a191ded054 edits 2010-09-08 15:43:24 -04:00
Mike Bayer c25437301c unify query.with_parent, util.with_parent, fix docs some more 2010-09-06 12:24:28 -04:00
Mike Bayer 900fe9c9ac doc updates 2010-09-06 11:48:22 -04:00
Mike Bayer 290bc39493 make the pooling docs less sucky 2010-09-06 02:19:35 -04:00
Mike Bayer 3a12b3540e fixes 2010-09-05 17:52:33 -04:00