summaryrefslogtreecommitdiff
path: root/examples/custom_attributes/custom_management.py
Commit message (Collapse)AuthorAgeFilesLines
* pep484: attributes and relatedMike Bayer2022-05-031-3/+6
| | | | | | | also implements __slots__ for QueryableAttribute, InstrumentedAttribute, Relationship.Comparator. Change-Id: I47e823160706fc35a616f1179a06c7864089e5b5
* Remove object in class definitionFederico Caselli2021-11-221-1/+1
| | | | | References: #4600 Change-Id: I2a62ddfe00bc562720f0eae700a497495d7a987a
* Post black reformattingMike Bayer2019-01-061-18/+14
| | | | | | | | | | | | | Applied on top of a pure run of black -l 79 in I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes resolves all remaining flake8 conditions for those codes we have enabled in setup.cfg. Included are resolutions for all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
* Run black -l 79 against all source filesMike Bayer2019-01-061-24/+41
| | | | | | | | | | | | | | This is a straight reformat run using black as is, with no edits applied at all. The black run will format code consistently, however in some cases that are prevalent in SQLAlchemy code it produces too-long lines. The too-long lines will be resolved in the following commit that will resolve all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9
* modernize some more examplesMike Bayer2013-04-271-4/+5
|
* -whitespace bonanza, contdMike Bayer2012-07-281-7/+7
|
* - [moved] The InstrumentationManager interfaceMike Bayer2012-06-241-108/+11
| | | | | | | | | | | | | and the entire related system of alternate class implementation is now moved out to sqlalchemy.ext.instrumentation. This is a seldom used system that adds significant complexity and overhead to the mechanics of class instrumentation. The new architecture allows it to remain unused until InstrumentationManager is actually imported, at which point it is bootstrapped into the core.
* fix a usage issue hereMike Bayer2012-01-281-0/+3
|
* - whitespace removal bonanzaMike Bayer2011-01-021-1/+1
|
* - merge tipMike Bayer2010-11-061-25/+35
|\
| * - remove remaining create_session() calls from examples, replace with SessionMike Bayer2010-10-241-25/+35
| | | | | | | | - replace all flush()/expunge_all() with commit()
* | - reorganizationMike Bayer2010-09-141-1/+2
|/ | | | | | | - attrbutes.py splits into attribtes.py and instrumentation.py - all the various Event subclasses go into events.py modules - some ideas for orm events - move *Extension out to deprecated_interfaces
* fix some examplesMike Bayer2010-03-281-3/+3
|
* - The official name for the relation() function is nowMike Bayer2010-03-171-2/+2
| | | | | | relationship(), to eliminate confusion over the relational algebra term. relation() however will remain available in equal capacity for the foreseeable future. [ticket:1740]
* - mega example cleanupMike Bayer2010-01-191-0/+1
| | | | | | - added READMEs to all examples in each __init__.py and added to sphinx documentation - added versioning example - removed vertical/vertical.py, the dictlikes are more straightforward
* Lots of fixes to the code examples to specify imports explicitly.Michael Trier2009-03-311-5/+7
| | | | | | | Explicit imports make it easier for users to understand the examples. Additionally a lot of the examples were fixed to work with the changes in the 0.5.x code base. One small correction to the Case expression. Thanks a bunch to Adam Lowry! Fixes #717.
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-0/+190
0.4 development continues at /sqlalchemy/branches/rel_0_4