Commit Graph

17 Commits

Author SHA1 Message Date
Mike Bayer 22ba1c43b7 -whitespace bonanza, contd 2012-07-28 17:05:50 -04:00
Mike Bayer dc989a483e more green sections. fun ! 2011-08-07 16:47:58 -04:00
Mike Bayer 4abcc0da83 - rework tutorial to be all declarative, all the time
- add detail to declarative docs about base classes
2011-08-06 18:29:37 -04:00
Mike Bayer 3b22a2ac97 - adjust this to work normally with current logging approach 2011-04-09 14:56:23 -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 8fc5005dfe merge 0.6 series to trunk. 2009-08-06 21:11:27 +00:00
Mike Bayer 1c329624a5 - merged -r5338:5429 of sphinx branch.
- Documentation has been converted to Sphinx.
In particular, the generated API documentation
has been constructed into a full blown
"API Reference" section which organizes
editorial documentation combined with
generated docstrings.   Cross linking between
sections and API docs are vastly improved,
a javascript-powered search feature is
provided, and a full index of all
classes, functions and members is provided.
2008-12-06 16:59:48 +00:00
Mike Bayer 4a6afd469f r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4
2008-05-09 16:34:10 +00:00
Jason Kirtland 224ff658e0 set svn:eol-style native 2007-10-13 20:35:42 +00:00
Mike Bayer 578efcfeb3 - decoupled all ColumnElements from also being Selectables. this means
that anything which is a column expression does not have a "c" or a
"columns" attribute.  Also works for select().as_scalar(); _ScalarSelect
is a columnelement, so you can't say select().as_scalar().c.foo, which is
a pretty confusing mistake to make.  in the case of _ScalarSelect made
an explicit raise if you try to access 'c'.
2007-08-09 21:50:23 +00:00
Mike Bayer b73b14f070 - draft sqlexpression tutorial
- added some generative methods to exists()
- got clause adapter to work with join()
2007-08-06 00:59:09 +00:00
Mike Bayer 90b2a57056 docs 2007-08-02 23:44:50 +00:00
Mike Bayer b673bdb02e - fixed autoflush with count(), aggregates
- doc formatting bonanza
- delete() section to orm tutorial
2007-08-02 15:45:04 +00:00
Mike Bayer 6c89138199 docs in progress, new ORM tutorial 2007-07-30 17:44:35 +00:00
Mike Bayer 6b40f50b87 fixup of the tutorial, doc tester with the new logging stuff 2006-10-14 22:22:53 +00:00
Mike Bayer bb79e2e871 merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1 2006-05-25 14:20:23 +00:00
Alexey Shamrin 33e30aacc3 Tutorial draft (not finished) and documentation framework improvements
* a first step to a new documentation framework, using Markdown syntax, with
  some extensions (detailed in txt2myt.py docstrings):
  * `rel:something` for internal links
  * `{@name=something}` to override default header names (used when linking)
  * `{python}` to force code block to use Python syntax highlighting (not
     needed when using examples with `>>>` prompt)
* txt2myt.py -- converter from .txt to .myt
* a draft of tutorial.txt, which uses new syntax
* testdocs.py -- check examples in documentation using doctest (currently only
  in tutorial.txt)
2006-03-15 13:39:11 +00:00