Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
add a __get__() to the legacy "query" accessor so that new attribute sweep doesn't build a session
Branches
user_defined_state
pje
Uniform interface for __sa_instrumentation_manager__: it is now always called with exactly one argument. If the return value is not a ClassManager, the result is then adapted. (Also, fixed an implicit assumption that all keys in a class dictionary are strings; the AddOns package used by the Trellis breaks this assumption.)
Branches
user_defined_state
Mike Bayer
pre-lunch silliness reduction
Branches
user_defined_state
Mike Bayer
- locked down interface on WeakInstanceDict, StrongInstanceDict - uses only add()/remove() for mutation (and in one case clear() and update()..) - made UnitOfWork interface consistent w.r.t. using InstanceState at all times and having better awareness of persistence states - all internal Session methods deal with InstanceState directly, all writes to identity map go through "uow".
Branches
user_defined_state
jason kirtland
- (grouping) is now optional in the enhanced formatargspec
Branches
user_defined_state
jason kirtland
- Simplify .compiled
Branches
user_defined_state
jason kirtland
- Util-ified enhanced formatargspec routines
Branches
user_defined_state
jason kirtland
Checkpoint of progress toward MapperExtension-elected class instrumentation, InstrumentationManager-mediated arbitrary class monkeypatching and eventually @decorator-driven callbacks on mapped classes. - ClassManager now encapsulates the "find manager" and "find state" strategies for its domain. This replaces the global boostrapping approach from the PyCon 2008 sprint. - Name changes: - ClassState -> ClassManager. - __sa_instrument_class__ -> __sa_instrumentation_manager__ - InstrumentClass -> interfaces.InstrumentationManager - get_as_list -> InstanceState.value_as_iterable - Cla…
Branches
user_defined_state
jason kirtland
- Removed set() ordering dependency.
Branches
user_defined_state
jason kirtland
- maintain Python 2.3 compat.
Branches
user_defined_state
jason kirtland
- Added a fast, id-indexed WeakKeyDictionary subclass.
Branches
user_defined_state
jason kirtland
- Removed need for class_state_getter in several situations. - Started refactoring the (temporary) global "get_state" function into the final form.
Branches
user_defined_state
Mike Bayer
added event firing for ScalarAttributeImpl / MutableScalarAttributeImpl, if listeners are defined; otherwise the logic is skipped
Branches
user_defined_state
jason kirtland
- Finished up extension api for CS.(un)install_method
Branches
user_defined_state
Mike Bayer
ok, rollback needs an explcit savepoint call first. still need tests for "pending"
Branches
user_defined_state
Mike Bayer
some test coverage for "parents" collection, pending collection supported too but not tested. looks like we will have to limit rollback() to when set_savepoint() has been called.
Branches
user_defined_state
Mike Bayer
- implemented rollback for collections - started a test suite for rollback, covers scalars/collections so far
Branches
user_defined_state
jason kirtland
- added direct InstanceState.class_state - "don't re-manage" logic in __init__ is smarter
Branches
user_defined_state
Mike Bayer
added an efficient rollback-with-savepoint mechanism. doesn't intrude on existing logic. test case is in root and is only for straight scalars so far; collections not correct yet
Branches
user_defined_state
jason kirtland
- The __init__ decorator/trigger now mimics the argument signature of the original __init__. To use features like _sa_session=s, allow for the argument in the class's __init__. - Stubby beginnings of user-class resurrection hook - Experimenting with CS.(un)install_method
Branches
user_defined_state
Mike Bayer
added deprecated descriptors for _instance_key, _sa_session_id, entity_name
Branches
user_defined_state
Christian Theune
Moved attributes _entity_name, _instance_key, and __sa_session_id__ to the instance state.
Branches
user_defined_state
jason kirtland
- new_instance is now a ClassState service
Branches
user_defined_state
jason kirtland
- removed bustage
Branches
user_defined_state
Christian Theune
Last fixes for `state_getter` and `class_state_getter` refactorings.
Branches
user_defined_state
Christian Theune
- Snapshot of _state, _class_state refactoring - Merged revision 4298 from trunk (fixes test coverage for _state usage)
Branches
user_defined_state
jason kirtland
checkpoint of "get _state" refactor by Christian Theune
Branches
user_defined_state
Mike Bayer
added 'key', 'sessionid', 'entity_name' attrs to InstanceState, not yet used
Branches
user_defined_state
Mike Bayer
fix default implementation of InstrumentClass + add test coverage
Branches
user_defined_state
Mike Bayer
rearrange MapperExtension init so that instrument_class is called before attribute instrumentation
Branches
user_defined_state
  1. Prev
  2. Next