[Sqlalchemy-commits] [2807] sqlalchemy/branches/rel_0_4/doc/build: copyright page
Brought to you by:
zzzeek
From: <co...@sq...> - 2007-06-28 21:53:00
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; } #msg ul, pre { overflow: auto; } #header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[2807] sqlalchemy/branches/rel_0_4/doc/build: copyright page</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>2807</dd> <dt>Author</dt> <dd>zzzeek</dd> <dt>Date</dt> <dd>2007-06-28 17:52:53 -0400 (Thu, 28 Jun 2007)</dd> </dl> <h3>Log Message</h3> <pre>copyright page</pre> <h3>Modified Paths</h3> <ul> <li><a href="#sqlalchemybranchesrel_0_4docbuildgenhtmlpy">sqlalchemy/branches/rel_0_4/doc/build/genhtml.py</a></li> </ul> <h3>Added Paths</h3> <ul> <li><a href="#sqlalchemybranchesrel_0_4docbuildcontentcopyrighttxt">sqlalchemy/branches/rel_0_4/doc/build/content/copyright.txt</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="sqlalchemybranchesrel_0_4docbuildcontentcopyrighttxt"></a> <div class="addfile"><h4>Added: sqlalchemy/branches/rel_0_4/doc/build/content/copyright.txt (0 => 2807)</h4> <pre class="diff"><span> <span class="info">--- sqlalchemy/branches/rel_0_4/doc/build/content/copyright.txt (rev 0) +++ sqlalchemy/branches/rel_0_4/doc/build/content/copyright.txt 2007-06-28 21:52:53 UTC (rev 2807) </span><span class="lines">@@ -0,0 +1,24 @@ </span><ins>+Appendix: Copyright {@name=copyright} +================ + +This is the MIT license: http://www.opensource.org/licenses/mit-license.php + +Copyright (c) 2005, 2006, 2007 Michael Bayer and contributors. SQLAlchemy is a trademark of Michael +Bayer. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or +substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + </ins></span></pre></div> <a id="sqlalchemybranchesrel_0_4docbuildgenhtmlpy"></a> <div class="modfile"><h4>Modified: sqlalchemy/branches/rel_0_4/doc/build/genhtml.py (2806 => 2807)</h4> <pre class="diff"><span> <span class="info">--- sqlalchemy/branches/rel_0_4/doc/build/genhtml.py 2007-06-28 21:47:07 UTC (rev 2806) +++ sqlalchemy/branches/rel_0_4/doc/build/genhtml.py 2007-06-28 21:52:53 UTC (rev 2807) </span><span class="lines">@@ -24,9 +24,13 @@ </span><span class="cx"> 'types', </span><span class="cx"> 'pooling', </span><span class="cx"> 'plugins', </span><del>- 'docstrings' </del><ins>+ 'docstrings', </ins><span class="cx"> ] </span><span class="cx"> </span><ins>+post_files = [ + 'copyright' +] + </ins><span class="cx"> parser = optparse.OptionParser(usage = "usage: %prog [options] [tests...]") </span><span class="cx"> parser.add_option("--file", action="store", dest="file", help="only generate file <file>") </span><span class="cx"> parser.add_option("--docstrings", action="store_true", dest="docstrings", help="only generate docstrings") </span><span class="lines">@@ -54,8 +58,12 @@ </span><span class="cx"> </span><span class="cx"> pickle.dump(docstrings, file('./output/compiled_docstrings.pickle', 'w')) </span><span class="cx"> </span><ins>+if not options.docstrings: + read_markdown.parse_markdown_files(root, post_files) + +if not options.file or options.docstrings: </ins><span class="cx"> pickle.dump(root, file('./output/table_of_contents.pickle', 'w')) </span><del>- </del><ins>+ </ins><span class="cx"> template_dirs = ['./templates', './output'] </span><span class="cx"> output = os.path.dirname(os.getcwd()) </span><span class="cx"> </span><span class="lines">@@ -69,7 +77,7 @@ </span><span class="cx"> outfile.write(t.render(attributes={})) </span><span class="cx"> </span><span class="cx"> if not options.docstrings: </span><del>- for filename in files: </del><ins>+ for filename in files + post_files: </ins><span class="cx"> try: </span><span class="cx"> genfile(filename, os.path.join(os.getcwd(), '../', filename + ".html")) </span><span class="cx"> except: </span></span></pre> </div> </div> </body> </html> |