From: Mike Bayer Date: Thu, 27 Oct 2005 07:45:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: rel_0_1_0~430 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81639b45287776719c537634ef888a94050b2142;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git --- diff --git a/doc/build/components/formatting.myt b/doc/build/components/formatting.myt index 17146d171e..173251594f 100644 --- a/doc/build/components/formatting.myt +++ b/doc/build/components/formatting.myt @@ -187,6 +187,16 @@ +<%method formatplain> + <%filter> + import re + f = re.sub(r'(.+)\n\n',r"

\1

",f, re.S) + f = re.sub(r'\n', r'
\n', f, re.S) + return f + +<% m.content() %> + + <%method itemlink trim="both"> <%args> item @@ -198,48 +208,11 @@ <%method paramtable> - +
<% m.content() %>
-<%method param> - <%args> - name - classname - type - users = 'all' - default = None - version = None - -% if default is None: default = 'None' - -<&|SELF:fliprow, flip=True &> - - - <% name %> (<% type %>) - -
-% if users is not None: - for users: <% users %>
-% - default: <% default %>
- used by: <% classname %> -% if version: -
since version: <% version %> -% -
- - - -<&|SELF:fliprow, flip=False &> - -

<% m.content() %>

- - - - - <%method function_doc> <%args> @@ -248,55 +221,15 @@ arglist = [] rettype = None - <&|SELF:fliprow, flip=True&> + - - <% name %>(<% string.join(map(lambda k: "%s" % k, arglist), ", ")%>) - - - <&|SELF:fliprow, flip=False&> -
<% m.content() %> -% if alt is not None: -

Also called as: <% alt %> -% -
- - - - - -<%method member_doc> - <%args> - name = "" - type = None - - <&|SELF:fliprow, flip=True&> - - - <% name %> - - - <&|SELF:fliprow, flip=False&> -
<% m.content() %> -
- +
+ + <% name %>(<% string.join(map(lambda k: "%s" % k, arglist), ", ")%>) +
<% m.content() %>
+
- - - - -<%method fliprow trim="both"> - <%args>flip=True - <%python> - flipper = m.get_attribute("formatflipper") - if flipper is None: - flipper = Value("light") - m.set_attribute("formatflipper", flipper) - - -% if flip: flipper({"light":"dark", "dark": "light"}[flipper()]) - <% m.content() %> - + <%method codeline trim="both"> diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 1b09082d7f..a368b2f65b 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -111,6 +111,7 @@ class Table(SchemaItem): try: return engine.tables[self.name] except: + args = [] for c in self.columns: args.append(c.copy()) return Table(self.name, engine, *args)