summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-10-16 00:57:29 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-10-16 00:57:29 +0000
commit8e1cec1fcec8da1d2f857d2353101a5689177af7 (patch)
tree3f2c193ecbef7c9325a0f0851d4da5b4b77fd301
parent819ef543b3ba04660609d5796b8bedc1f0e8a81f (diff)
downloadsqlalchemy-8e1cec1fcec8da1d2f857d2353101a5689177af7.tar.gz
tweaks...
-rw-r--r--doc/build/compile_docstrings.py4
-rw-r--r--doc/build/components/pydoc.myt4
-rw-r--r--doc/build/content/document_base.myt4
-rw-r--r--doc/build/txt2myt.py4
4 files changed, 9 insertions, 7 deletions
diff --git a/doc/build/compile_docstrings.py b/doc/build/compile_docstrings.py
index 44135b6ed..fc6003c0e 100644
--- a/doc/build/compile_docstrings.py
+++ b/doc/build/compile_docstrings.py
@@ -25,7 +25,9 @@ make_doc(obj=sql, classes=[])
make_doc(obj=schema)
make_doc(obj=engine, classes=[engine.Connectable, engine.ComposedSQLEngine, engine.Connection, engine.Transaction, engine.Dialect, engine.ConnectionProvider, engine.ExecutionContext, engine.ResultProxy, engine.RowProxy])
make_doc(obj=engine.url)
-make_doc(obj=orm)
+make_doc(obj=orm, classes=[orm.MapperExtension])
+make_doc(obj=orm.mapperlib, classes=[orm.mapperlib.Mapper, orm.mapperlib.SelectionContext])
+make_doc(obj=orm.query, classes=[orm.query.Query, orm.query.QueryContext])
make_doc(obj=orm.session, classes=[orm.session.Session, orm.session.SessionTransaction])
make_doc(obj=pool, classes=[pool.DBProxy, pool.Pool, pool.QueuePool, pool.SingletonThreadPool])
make_doc(obj=sessioncontext)
diff --git a/doc/build/components/pydoc.myt b/doc/build/components/pydoc.myt
index 989ea2199..d90f41ef7 100644
--- a/doc/build/components/pydoc.myt
+++ b/doc/build/components/pydoc.myt
@@ -1,7 +1,7 @@
<%global>
import re, types, string, docstring
def format_paragraphs(text):
- return re.sub(r'([\w])\n([\w])', r'\1 \2', text or '', re.S)
+ return re.sub(r'([_\w])\n([_\w])', r'\1 \2', text or '', re.S)
</%global>
<%method obj_doc>
@@ -60,4 +60,4 @@
<&|formatting.myt:member_doc, name=prop.name, link=prop.link &>
<&|formatting.myt:formatplain&><% format_paragraphs(prop.doc) %></&>
</&>
-</%method> \ No newline at end of file
+</%method>
diff --git a/doc/build/content/document_base.myt b/doc/build/content/document_base.myt
index 137796d0d..e4750c756 100644
--- a/doc/build/content/document_base.myt
+++ b/doc/build/content/document_base.myt
@@ -23,8 +23,8 @@
wrapper='section_wrapper.myt'
onepage='documentation'
index='index'
- title='SQLAlchemy 0.2 Documentation'
- version = '0.2.8'
+ title='SQLAlchemy 0.3 Documentation'
+ version = '0.3.0'
</%attr>
<%method title>
diff --git a/doc/build/txt2myt.py b/doc/build/txt2myt.py
index 3301a2b20..04e34dad6 100644
--- a/doc/build/txt2myt.py
+++ b/doc/build/txt2myt.py
@@ -202,7 +202,7 @@ def end_of_header(tree, level, start):
return len(tree)
def get_parent_map(tree):
- return dict((c, p) for p in tree.getiterator() for c in p)
+ return dict([(c, p) for p in tree.getiterator() for c in p])
def html2myghtydoc(html):
"""Convert HTML to Myghty template (for SQLAlchemy's doc framework)
@@ -270,7 +270,7 @@ def html2myghtydoc(html):
" Modify .txt file if need you to change the content.-->\n"
# discard surrounding <html> tag
- body = ''.join(tostring(e) for e in tree[:])
+ body = ''.join([tostring(e) for e in tree[:]])
return header + body