Commit Graph

4135 Commits

Author SHA1 Message Date
Mike Bayer 146ec3469a and try again 2008-12-19 02:03:12 +00:00
Mike Bayer 7c803dfadb 2.4 doesnt have hashlib.... 2008-12-19 02:01:42 +00:00
Mike Bayer 5ddce0ea00 *most* py3k warnings are resolved, with the exception of the various __setslice__ related warnings
I don't really know how to get rid of
2008-12-18 18:46:27 +00:00
Mike Bayer d76dc73f33 merge the test/ directory from -r5438:5439 of py3k_warnings branch. this gives
us a 2.5-frozen copy of unittest so we're insulated from unittest changes.
2008-12-18 18:11:12 +00:00
Mike Bayer be5d326343 merged -r5299:5438 of py3k warnings branch. this fixes some sqlite py2.6 testing issues,
and also addresses a significant chunk of py3k deprecations.  It's mainly
expicit __hash__ methods.  Additionally, most usage of sets/dicts to store columns uses
util-based placeholder names.
2008-12-18 17:57:15 +00:00
Jason Kirtland 98d7d70674 dynamic_loader() accepts query_class= to mix in user Query subclasses. 2008-12-18 17:06:01 +00:00
Jason Kirtland 3c506294e3 Association proxies no longer cloak themselves at the class level. 2008-12-18 16:55:47 +00:00
Mike Bayer b333789336 - Query() can be passed a "composite" attribute
as a column expression and it will be expanded.
Somewhat related to [ticket:1253].
- Query() is a little more robust when passed
various column expressions such as strings,
clauselists, text() constructs (which may mean
it just raises an error more nicely).
- select() can accept a ClauseList as a column
in the same way as a Table or other selectable
and the interior expressions will be used as
column elements. [ticket:1253]
- removed erroneous FooTest from test/orm/query

-This line, and those below, will be ignored--

M    test/orm/query.py
M    test/orm/mapper.py
M    test/sql/select.py
M    lib/sqlalchemy/orm/query.py
M    lib/sqlalchemy/sql/expression.py
M    CHANGES
2008-12-18 16:50:49 +00:00
Mike Bayer 7933395055 document ConnectionProxy 2008-12-18 00:12:12 +00:00
Mike Bayer 6a99f29313 - _execute_clauseelement() goes back to being
a private method.  Subclassing Connection
is not needed now that ConnectionProxy
is available.
- tightened the interface for the various _execute_XXX()
methods to reduce ambiguity
- __distill_params() no longer creates artificial [{}] entry,
blank dict is no longer passed through to do_execute()
in any case unless explicitly sent from the outside
as in connection.execute("somestring"), {})
- fixed a few old sql.query tests which were doing that
- removed needless do_execute() from mysql dialect
- fixed charset param not properly being sent to
_compat_fetchone() in mysql
2008-12-17 23:09:51 +00:00
Mike Bayer 7b7530de19 - sqlite types
- fixed targeting for sqlalchemy.types
2008-12-17 20:53:43 +00:00
Mike Bayer 6788024721 - Fixed bug where many-to-many relation() with
viewonly=True would not correctly reference the
link between secondary->remote.
2008-12-17 20:39:18 +00:00
Mike Bayer 172781e678 - added sphinx handler to allow __init__ methods through
- sqlite module documentation
- some corrections to pool docs
- the example in URL.translate_connect_args() never made any sense anyway so removed it
2008-12-17 20:12:07 +00:00
Gaëtan de Menten 163c4819e0 polymorphic_fetch is deprecated. Mark it so in the documentation. 2008-12-17 14:53:18 +00:00
Mike Bayer 4a662d5966 ok we need find_packages. fine. 2008-12-15 21:58:36 +00:00
Mike Bayer d91219520f corrections 2008-12-15 21:25:17 +00:00
Mike Bayer 4e2d54fdd5 removed dependencies on setuptools. distutils will be used if setuptools is not
present.
2008-12-15 21:23:55 +00:00
Michael Trier c712af4d4c Corrected output on docs and a missing {stop} that prevented python results from displaying in the docs. 2008-12-12 21:59:33 +00:00
Michael Trier f9b8641269 Support for three levels of column nullability: NULL, NOT NULL, and the database's configured default.
The default Column configuration (nullable=True) will now generate NULL in the DDL. Previously no specification was emitted and the database default would take effect (usually NULL, but not always).  To explicitly request the database default, configure columns with nullable=None and no specification will be emitted in DDL. Fixes #1243.
2008-12-12 04:49:24 +00:00
Michael Trier 1d90146210 Modified fails_on testing decorator to take a reason for the failure.
This should assist with helping to document the reasons for testing failures.
Currently unspecified failures are defaulted to 'FIXME: unknown'.
2008-12-12 03:41:05 +00:00
Michael Trier aaac4520d3 Corrected and verified a few more mssql tests. 2008-12-12 03:40:57 +00:00
Michael Trier 7247ca12cf Broke out a specific values test and indicated that it fails on mssql due to duplicate columns in the order by clause. 2008-12-12 01:40:05 +00:00
Mike Bayer b22edf1d8a - turn __visit_name__ into an explicit member.
[ticket:1244]
2008-12-11 23:28:01 +00:00
Jason Kirtland 8d3fab1250 Index entries for thread safety. 2008-12-11 22:09:12 +00:00
Michael Trier f334da1f6b And now for the CHANGES. 2008-12-11 21:55:22 +00:00
Michael Trier 887c403f76 Corrected problem with bindparams not working properly with Query.delete and Query.update. Thanks zzzeek. Fixes #1242. 2008-12-11 21:52:11 +00:00
Michael Trier 1e4eeb8098 We don't need two of these. 2008-12-11 19:27:38 +00:00
Michael Trier 8ffbc9a846 Access doesn't support savepoints or two-phase commit. 2008-12-11 19:24:24 +00:00
Michael Trier 052d7f3643 Implemented experimental savepoint support in mssql. There are still some failing savepoint related tests. 2008-12-11 19:24:22 +00:00
Mike Bayer 5b0c456abd fix circular import 2008-12-11 18:43:05 +00:00
Mike Bayer e98b936129 - Connection.invalidate() checks for closed status
to avoid attribute errors. [ticket:1246]
2008-12-11 17:39:01 +00:00
Mike Bayer f527d3b9af - PickleType now favors == comparison by default,
if the incoming object (such as a dict) implements
__eq__().  If the object does not implement
__eq__() and mutable=True, a deprecation warning
is raised.
2008-12-11 17:27:33 +00:00
Mike Bayer a44f9d1bfd - fixed string-based "remote_side", "order_by" and
others not propagating correctly when used in
backref().
2008-12-11 15:34:45 +00:00
Mike Bayer 609d8e8bc3 - VERSION moves just as a string in __version__
- added modified sphinx.sty with plain Verbatim section
- link to pdf doc in site
2008-12-10 21:27:21 +00:00
Mike Bayer 4d698a28a2 - first() works as expected with Query.from_statement(). 2008-12-10 20:28:54 +00:00
Mike Bayer a2f90fd003 - reworked the "SQL assertion" code to something more flexible and based off of ConnectionProxy. upcoming changes to dependency.py
will make use of the enhanced flexibility.
2008-12-10 02:16:52 +00:00
Mike Bayer 41f5f3465a dont use names to find Annotated subclasses 2008-12-09 21:52:08 +00:00
Mike Bayer 70f55bd2cd - restored the previous API Reference structure
- bumped latex TOC structure, the PDF looks great
- but we need to fix the translate_connect_args docstring bug to really have PDF
2008-12-08 21:32:29 +00:00
Mike Bayer 3e2d6a9a18 fix typos 2008-12-08 20:49:12 +00:00
Mike Bayer 082d5db64f - removed redundant declarative docs
- cleanup of metadata/foreignkey docs
2008-12-08 20:21:02 +00:00
Gaëtan de Menten 4c4568eeb8 further fix that docstring 2008-12-08 10:43:57 +00:00
Gaëtan de Menten 6c7b506f0e fixed invalid docstring example 2008-12-08 10:41:36 +00:00
Mike Bayer dd91a165cc - restored the main search form
- fixed search highlighting
- the url docstring works again from a ReST perspective, still not PDF
2008-12-08 00:20:20 +00:00
Mike Bayer 480436ff7c - moved index.rst around to have the API docs right there, no "Main Documentation" chapter which is fairly needless. this all allows PDF to have a decent TOC on the side with only two levels (can we change that ?)
- added LatexFormatter.
- PDF wont work until issue with the docstirng in url.py/URL.translate_connect_args is fixed.
2008-12-07 23:58:02 +00:00
Mike Bayer 058c2895be worked schema into sections 2008-12-07 21:10:27 +00:00
Mike Bayer 9bab01d37b - convert __init__ and :members: to be compatible with autoclass_content='both' 2008-12-07 20:13:26 +00:00
Gaëtan de Menten 0dbbd6fe66 fix typos 2008-12-07 14:32:37 +00:00
Mike Bayer b11ae3a63a documented onupdate, partially documented server_onupdate 2008-12-07 06:50:47 +00:00
Mike Bayer ee7fcf3110 - re-documented Table and Column constructors, fixed case sensitivity description [ticket:1231]
- turned on autoclass_content="both".  Need to specify __init__ docstring with a newline after the """.
- other docs
2008-12-07 06:30:00 +00:00
Jason Kirtland bdf0117578 Adjusted basis for refs. 2008-12-07 06:26:36 +00:00