]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Oct 2005 07:45:25 +0000 (07:45 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Oct 2005 07:45:25 +0000 (07:45 +0000)
doc/build/components/formatting.myt
lib/sqlalchemy/schema.py

index 17146d171e5b8dabafdceaa2e83de35b763df77e..173251594f8177853cb630996d359dcf52784d0a 100644 (file)
 </div>
 </%method>
 
+<%method formatplain>
+    <%filter>
+        import re
+        f = re.sub(r'(.+)\n\n',r"<p>\1</p>",f, re.S)
+        f = re.sub(r'\n', r'<br/>\n', f, re.S)
+        return f
+    </%filter>
+<% m.content() %>
+</%method>
+
 <%method itemlink trim="both">
     <%args>
     item
 
 
 <%method paramtable>
-    <table cellspacing="0" width="100%">
+    <table cellspacing="0" cellpadding="0" width="100%">
     <% m.content() %>
     </table>
 </%method>
 
-<%method param>
-        <%args>
-        name
-        classname
-        type
-    users = 'all'
-        default = None
-    version = None
-        </%args>
-% if default is None: default = 'None'
-
-<&|SELF:fliprow, flip=True &>
-    <td valign="top">
-    <A name="<% m.comp('doclib.myt:current').path %>_<% name %>"></a>
-    <b><% name %></b> (<% type %>)</td>
-    <td align="right" width="40%">
-        <div style="text-align:left">
-% if users is not None:
-        for users: <% users %><br/>
-%
-        default: <% default %><br/>
-        used by: <% classname %>
-% if version:
-        <br/>since version: <% version %>
-%
-        </div>
-    </td>
-</&>
-
-<&|SELF:fliprow, flip=False &>
-    <td colspan="2">
-    <p style="margin-left:15px;margin-bottom:5px;margin-top:5px"><% m.content() %></p>
-
-    </td>
-</&>
-
-</%method>
 
 <%method function_doc>
     <%args>
         arglist = []
         rettype = None
     </%args>
-    <&|SELF:fliprow, flip=True&>
+    <tr>
     <td>
-    <A name="<% m.comp('doclib.myt:current').path %>_<% name %>"></a>
-    <b><% name %>(<% string.join(map(lambda k: "<i>%s</i>" % k, arglist), ", ")%>)</b></td>
-    </td>
-    </&>
-    <&|SELF:fliprow, flip=False&>
-    <td colspan="2"><div style="margin-left:15px;margin-bottom:5px;margin-top:5px"><% m.content() %>
-%   if alt is not None:
-    <br/><br/><b>Also called as:</b> <% alt %>
-%
-    </div>
-    
-    </td>
-    </&>
-</%method>
-
-<%method member_doc>
-    <%args>
-        name = ""
-        type = None
-    </%args>
-    <&|SELF:fliprow, flip=True&>
-    <td>
-    <A name="<% m.comp('doclib.myt:current').path %>_<% name %>"></a>
-    <b><% name %></b></td>
-    </td><td></td>
-    </&>
-    <&|SELF:fliprow, flip=False&>
-    <td colspan="2"><div style="margin-left:15px;margin-bottom:5px;margin-top:5px"><% m.content() %>
-    </div>
-    
+        <div class="darkcell">
+        <A name="<% m.comp('doclib.myt:current').path %>_<% name %>"></a>
+        <b><% name %>(<% string.join(map(lambda k: "<i>%s</i>" % k, arglist), ", ")%>)</b>
+        <div class="docstring"><% m.content() %></div>
+        </div>
     </td>
-    </&>
-</%method>
-
-
-<%method fliprow trim="both">
-    <%args>flip=True</%args>
-    <%python>
-        flipper = m.get_attribute("formatflipper")
-        if flipper is None: 
-            flipper = Value("light")
-            m.set_attribute("formatflipper", flipper)
-    </%python>
-    
-% if flip: flipper({"light":"dark", "dark": "light"}[flipper()])
-    <tr class="<% flipper() %>"><% m.content() %></tr>
-   
+    </tr>
 </%method>
 
 <%method codeline trim="both">
index 1b09082d7f468dcc2f51c28fd420f633c0ac331c..a368b2f65b613b13f9e3b4f25c0b9c55bb7f2d63 100644 (file)
@@ -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)