Skip to content
Browse files

Docs and more Python backwards compatibility

  • Loading branch information...
1 parent 366fe8b commit 4b23c2f9679299f30a863170966563ec7a5e71f4 Sam Ruby committed Aug 30, 2006
Showing with 441 additions and 4 deletions.
  1. +7 −0 AUTHORS
  2. +160 −0 INSTALL
  3. +84 −0 LICENCE
  4. +20 −0 README
  5. +24 −0 THANKS
  6. +19 −0 TODO
  7. +109 −0 docs/venus.svg
  8. +18 −4 runtests.py
View
7 AUTHORS
@@ -0,0 +1,7 @@
+Sam Ruby <rubys@intertwingly.net>
+
+This codebase represents a radical refactoring of Planet 2.0, which lists
+the following authors:
+
+Scott James Remnant <scott@netsplit.com>
+Jeff Waugh <jdub@perkypants.org>
View
160 INSTALL
@@ -0,0 +1,160 @@
+Installing Planet
+-----------------
+
+You'll need at least Python 2.2 installed on your system, we recommend
+Python 2.4 though as there may be bugs with the earlier libraries.
+
+Everything Pythonesque Planet needs should be included in the
+distribution.
+
+ i.
+ First you'll need to extract the files into a folder somewhere.
+ I expect you've already done this, after all, you're reading this
+ file. You can place this wherever you like, ~/planet is a good
+ choice, but so's anywhere else you prefer.
+
+ ii.
+ This is very important: from within that directory, type the following
+ command:
+
+ python runtests.py
+
+ This should take anywhere from a half a second to ten seconds to execute.
+ No network connection is required, and it cleans up after itself. If it
+ completes with an "OK", you are good to go. Otherwise stopping here and
+ inquiring on the mailing list is a good idea as it can save you lots of
+ frustration down the road.
+
+ iii.
+ Make a copy of one of the 'ini' the files in the 'examples' subdirectory,
+ and put them wherever you like; I like to use the Planet's name (so
+ ~/planet/debian), but it's really up to you.
+
+ iv.
+ Edit the config.ini file in this directory to taste, it's pretty
+ well documented so you shouldn't have any problems here. Pay
+ particular attention to the 'output_dir' option, which should be
+ readable by your web server. If the directory you specify in your
+ 'cache_dir' exists, make sure that it is empty.
+
+ v.
+ Run it: python planet.py pathto/config.ini
+
+ You'll want to add this to cron, make sure you run it from the
+ right directory.
+
+ vi. (Optional)
+ Tell us about it! We'd love to link to you on planetplanet.org :-)
+
+ vii. (Optional)
+ Build your own themes, templates, or filters! And share!
+
+
+Template files
+--------------
+
+The template files used are given as a whitespace separated list in the
+'template_files' option in config.ini. The extension at the end of the
+file name indicates what processor to use. Templates may be implemented
+using htmltmpl, xslt, or any programming language.
+
+The final extension is removed to form the name of the file placed in the
+output directory.
+
+HtmlTmpl files
+--------------
+
+Reading through the example templates is recommended, they're designed to
+pretty much drop straight into your site with little modification
+anyway.
+
+Inside these template files, <TMPL_VAR xxx> is replaced with the content
+of the 'xxx' variable. The variables available are:
+
+ name .... } the value of the equivalent options
+ link .... } from the [Planet] section of your
+ owner_name . } Planet's config.ini file
+ owner_email }
+
+ url .... link with the output filename appended
+ generator .. version of planet being used
+
+ date .... { your date format
+ date_iso ... current date and time in { ISO date format
+ date_822 ... { RFC822 date format
+
+
+There are also two loops, 'Items' and 'Channels'. All of the lines of
+the template and variable substitutions are available for each item or
+channel. Loops are created using <TMPL_LOOP LoopName>...</TMPL_LOOP>
+and may be used as many times as you wish.
+
+The 'Channels' loop iterates all of the channels (feeds) defined in the
+configuration file, within it the following variables are available:
+
+ name .... value of the 'name' option in config.ini, or title
+ title .... title retreived from the channel's feed
+ tagline .... description retreived from the channel's feed
+ link .... link for the human-readable content (from the feed)
+ url .... url of the channel's feed itself
+
+ Additionally the value of any other option specified in config.ini
+ for the feed, or in the [DEFAULT] section, is available as a
+ variable of the same name.
+
+ Depending on the feed, there may be a huge variety of other
+ variables may be available; the best way to find out what you
+ have is using the 'planet-cache' tool to examine your cache files.
+
+The 'Items' loop iterates all of the blog entries from all of the channels,
+you do not place it inside a 'Channels' loop. Within it, the following
+variables are available:
+
+ id .... unique id for this entry (sometimes just the link)
+ link .... link to a human-readable version at the origin site
+
+ title .... title of the entry
+ summary .... a short "first page" summary
+ content .... the full content of the entry
+
+ date .... { your date format
+ date_iso ... date and time of the entry in { ISO date format
+ date_822 ... { RFC822 date format
+
+ If the entry takes place on a date that has no prior entry has
+ taken place on, the 'new_date' variable is set to that date.
+ This allows you to break up the page by day.
+
+ If the entry is from a different channel to the previous entry,
+ or is the first entry from this channel on this day
+ the 'new_channel' variable is set to the same value as the
+ 'channel_url' variable. This allows you to collate multiple
+ entries from the same person under the same banner.
+
+ Additionally the value of any variable that would be defined
+ for the channel is available, with 'channel_' prepended to the
+ name (e.g. 'channel_name' and 'channel_link').
+
+ Depending on the feed, there may be a huge variety of other
+ variables may be available; the best way to find out what you
+ have is using the 'planet-cache' tool to examine your cache files.
+
+
+There are also a couple of other special things you can do in a template.
+
+ - If you want HTML escaping applied to the value of a variable, use the
+ <TMPL_VAR xxx ESCAPE="HTML"> form.
+
+ - If you want URI escaping applied to the value of a variable, use the
+ <TMPL_VAR xxx ESCAPE="URI"> form.
+
+ - To only include a section of the template if the variable has a
+ non-empty value, you can use <TMPL_IF xxx>....</TMPL_IF>. e.g.
+
+ <TMPL_IF new_date>
+ <h1><TMPL_VAR new_date></h1>
+ </TMPL_IF>
+
+ You may place a <TMPL_ELSE> within this block to specify an
+ alternative, or may use <TMPL_UNLESS xxx>...</TMPL_UNLESS> to
+ perform the opposite.
View
84 LICENCE
@@ -0,0 +1,84 @@
+Planet is released under the same licence as Python, here it is:
+
+
+A. HISTORY OF THE SOFTWARE
+==========================
+
+Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI) in the Netherlands as a successor of a language called ABC. Guido is Python's principal author, although it includes many contributions from others. The last version released from CWI was Python 1.2. In 1995, Guido continued his work on Python at the Corporation for National Research Initiatives (CNRI) in Reston, Virginia where he released several versions of the software. Python 1.6 was the last of the versions released by CNRI. In 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. Python 2.0 was the first and only release from BeOpen.com.
+
+Following the release of Python 1.6, and after Guido van Rossum left CNRI to work with commercial software developers, it became clear that the ability to use Python with software available under the GNU Public License (GPL) was very desirable. CNRI and the Free Software Foundation (FSF) interacted to develop enabling wording changes to the Python license. Python 1.6.1 is essentially the same as Python 1.6, with a few minor bug fixes, and with a different license that enables later versions to be GPL-compatible. Python 2.1 is a derivative work of Python 1.6.1, as well as of Python 2.0.
+
+After Python 2.0 was released by BeOpen.com, Guido van Rossum and the other PythonLabs developers joined Digital Creations. All intellectual property added from this point on, starting with Python 2.1 and its alpha and beta releases, is owned by the Python Software Foundation (PSF), a non-profit modeled after the Apache Software Foundation. See http://www.python.org/psf/ for more information about the PSF.
+
+Thanks to the many outside volunteers who have worked under Guido's direction to make these releases possible.
+
+B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
+===============================================================
+
+PSF LICENSE AGREEMENT
+---------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 2.1.1 software in source or binary form and its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 2.1.1 alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001 Python Software Foundation; All Rights Reserved" are retained in Python 2.1.1 alone or in any derivative version prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on or incorporates Python 2.1.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 2.1.1.
+
+4. PSF is making Python 2.1.1 available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.1.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 2.1.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.1.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python 2.1.1, Licensee agrees to be bound by the terms and conditions of this License Agreement.
+
+BEOPEN.COM TERMS AND CONDITIONS FOR PYTHON 2.0
+----------------------------------------------
+
+BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
+
+1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization ("Licensee") accessing and otherwise using this software in source or binary form and its associated documentation ("the Software").
+
+2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee.
+
+3. BeOpen is making the Software available to Licensee on an "AS IS" basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+5. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
+
+6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the "BeOpen Python" logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page.
+
+7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement.
+
+CNRI OPEN SOURCE GPL-COMPATIBLE LICENSE AGREEMENT
+-------------------------------------------------
+
+1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6.1 software in source or binary form and its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 1.6.1 alone or in any derivative version, provided, however, that CNRI's License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) 1995-2001 Corporation for National Research Initiatives; All Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version prepared by Licensee. Alternately, in lieu of CNRI's License Agreement, Licensee may substitute the following text (omitting the quotes): "Python 1.6.1 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6.1 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1013. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1013".
+
+3. In the event Licensee prepares a derivative work that is based on or incorporates Python 1.6.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 1.6.1.
+
+4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
+
+7. This License Agreement shall be governed by the federal intellectual property law of the United States, including without limitation the federal copyright law, and, to the extent such U.S. federal law does not apply, by the law of the Commonwealth of Virginia, excluding Virginia's conflict of law provisions. Notwithstanding the foregoing, with regard to derivative works based on Python 1.6.1 that incorporate non-separable material that was previously distributed under the GNU General Public License (GPL), the law of the Commonwealth of Virginia shall govern this License Agreement only as to issues arising under or with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between CNRI and Licensee. This License Agreement does not grant permission to use CNRI trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
+
+8. By clicking on the "ACCEPT" button where indicated, or by copying, installing or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and conditions of this License Agreement.
+
+ ACCEPT
+
+CWI PERMISSIONS STATEMENT AND DISCLAIMER
+----------------------------------------
+
+Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved.
+
+Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.
+
+STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
View
20 README
@@ -0,0 +1,20 @@
+Planet
+------
+
+Planet is a flexible feed aggregator. It downloads news feeds published by
+web sites and aggregates their content together into a single combined feed,
+latest news first. This version of Planet is named Venus as it is the
+second major version. The first version is still in wide use and is
+also actively being maintained.
+
+It uses Mark Pilgrim's Universal Feed Parser to read from CDF, RDF, RSS and
+Atom feeds; Leonard Richardson's Beautiful Soup to correct markup issues;
+and Tomas Styblo's templating engine to output static files in any
+format you can dream up.
+
+To get started, check out the INSTALL file in this directory. If you have any
+questions or comments, please don't hesitate to use the planet mailing list:
+
+ http://lists.planetplanet.org/mailman/listinfo/devel
+
+Keywords: feed, blog, aggregator, RSS, RDF, Atom, OPML, Python
View
24 THANKS
@@ -0,0 +1,24 @@
+DeWitt Clinton - Mac OSX
+Mary Gardiner - PythonPath
+
+This codebase represents a radical refactoring of Planet 2.0, which lists
+the following contributors:
+
+Patches and Bug Fixes
+---------------------
+
+Chris Dolan - fixes, exclude filtering, duplicate culling
+David Edmondson - filtering
+Lucas Nussbaum - locale configuration
+David Pashley - cache code profiling and recursion fixing
+Gediminas Paulauskas - days per page
+
+
+Spycyroll Maintainers
+---------------------
+
+Vattekkat Satheesh Babu
+Richard Jones
+Garth Kidd
+Eliot Landrum
+Bryan Richard
View
19 TODO
@@ -0,0 +1,19 @@
+TODO
+====
+
+ * Enable per-feed adjustments
+
+ The goal is to better cope with feeds that don't have dates or ids or
+ consitently encode or escape things incorrectly.
+
+ * Expire feed history
+
+ The feed cache doesn't currently expire old entries, so could get
+ large quite rapidly. We should probably have a config setting for
+ the cache expiry, the trouble is some channels might need a longer
+ or shorter one than others.
+
+ * Allow display normalisation to specified timezone
+
+ Some Planet admins would like their feed to be displayed in the local
+ timezone, instead of UTC.
View
109 docs/venus.svg
@@ -0,0 +1,109 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 1024" xmlns:xlink="http://www.w3.org/1999/xlink">>
+ <defs>
+ <g id="feed">
+ <path d="M10,15l75,0l0,75l-75,0z" fill="#F80"
+ stroke-linejoin="round" stroke-width="20" stroke="#F80"/>
+ <circle cx="15" cy="82" r="6" fill="#FFF"/>
+ <path d="M35,82s0-20-20-20 M55,82s0-40-40-40 M75,82s0-60-60-60"
+ stroke-linecap="round" stroke-width="12" stroke="#FFF" fill="none"/>
+ </g>
+
+ <g id="entry">
+ <g fill="none">
+ <ellipse stroke="#689" rx="3" ry="22"/>
+ <ellipse stroke="#eb4" rx="3" ry="22" transform="rotate(-66)"/>
+ <ellipse stroke="#8ac" rx="3" ry="22" transform="rotate(66)"/>
+ <circle stroke="#451" r="22"/>
+ </g>
+ <g fill="#689" stroke="#FFF">
+ <circle fill="#8ac" r="6.5"/>
+ <circle cy="-22" r="4.5"/>
+ <circle cx="-20" cy="9" r="4.5"/>
+ <circle cx="20" cy="9" r="4.5"/>
+ </g>
+ </g>
+ <g id="node" stroke="none">
+ <circle r="18" fill="#049"/>
+ <path d="M-14,7a16,16,0,0,1,22-21a15,15,0,0,0-14,2a3,3,0,1,1-5,5
+ a15,15,0,0,0-3,14" fill="#FFF"/>
+ </g>
+ <path d="M-14-6a44,62,0,0,0,28,0l0,12a44,62,0,0,0-28,0z"
+ fill="#049" id="arc"/>
+ </defs>
+
+ <rect height="1024" width="1280" fill="#0D0"/>
+
+ <use xlink:href="#feed" x="220" y="30"/>
+ <use xlink:href="#feed" x="150" y="60"/>
+ <use xlink:href="#feed" x="100" y="100"/>
+ <use xlink:href="#feed" x="60" y="150"/>
+ <use xlink:href="#feed" x="30" y="220"/>
+
+ <g fill="#F00" stroke-linejoin="round" stroke-width="12" stroke="#F88">
+ <path d="M50,800l0,180l1000,0l0-180z" fill="#FFF"/>
+ <path d="M150,330l400,0l0,300l-400,0z"/>
+ <path d="M750,200l200,0 l0,110l100,0l0,60l-100,0 l0,40l100,0l0,60l-100,0
+ l0,40l100,0l0,60l-100,0 l0,130l70,70l-340,0l70,-70z"/>
+ </g>
+
+ <path d="M1080,360l100,0l0,-70l-30,-30l-70,0z" fill="#FFF"/>
+ <path d="M1180,290l-30,0l0,-30" fill="none" stroke="#000"/>
+ <use xlink:href="#feed" x="1080" y="380"/>
+
+ <g transform="translate(1080,500)">
+ <use xlink:href="#arc" transform="translate(76,50) rotate(90)"/>
+ <use xlink:href="#arc" transform="translate(50,35) rotate(-30)"/>
+ <use xlink:href="#arc" transform="translate(50,65) rotate(30)"/>
+ <use xlink:href="#node" transform="translate(24,50)"/>
+ <use xlink:href="#node" transform="translate(76,80)"/>
+ <use xlink:href="#node" transform="translate(76,20)"/>
+ </g>
+
+ <path d="M260,150s100,60,90,280 M170,270s150,0,180,120
+ M200,200s150,0,150,200l0,450m-100,-70l100,70l100,-70
+ M850,807l0,-200m-70,70l70,-70l70,70"
+ stroke="#000" fill="none" stroke-width="40"/>
+
+ <ellipse cx="350" cy="368" fill="#FFF" rx="80" ry="30"/>
+ <ellipse cx="850" cy="238" fill="#FFF" rx="80" ry="30"/>
+ <g font-size="32" fill="#FFF" text-anchor="middle">
+ <text x="350" y="380" fill="#F00">Spider</text>
+ <text x="350" y="460">Universal Feed Parser</text>
+ <text x="350" y="530">BeautifulSoup</text>
+ <text x="350" y="600">Reconstitute</text>
+ <text x="350" y="750">Filter(s)</text>
+ <text x="850" y="250" fill="#F00">Splice</text>
+ <text x="950" y="350">Template</text>
+ <text x="950" y="450">Template</text>
+ <text x="950" y="550">Template</text>
+ <text x="1126" y="330" fill="#000">HTML</text>
+ </g>
+
+
+ <use xlink:href="#entry" x="100" y="900"/>
+ <use xlink:href="#entry" x="180" y="950"/>
+ <use xlink:href="#entry" x="200" y="850"/>
+ <use xlink:href="#entry" x="290" y="920"/>
+ <use xlink:href="#entry" x="400" y="900"/>
+ <use xlink:href="#entry" x="470" y="840"/>
+ <use xlink:href="#entry" x="500" y="930"/>
+ <use xlink:href="#entry" x="570" y="870"/>
+ <use xlink:href="#entry" x="620" y="935"/>
+ <use xlink:href="#entry" x="650" y="835"/>
+ <use xlink:href="#entry" x="690" y="900"/>
+ <use xlink:href="#entry" x="720" y="835"/>
+ <use xlink:href="#entry" x="730" y="950"/>
+ <use xlink:href="#entry" x="760" y="900"/>
+ <use xlink:href="#entry" x="790" y="835"/>
+ <use xlink:href="#entry" x="800" y="950"/>
+ <use xlink:href="#entry" x="830" y="900"/>
+ <use xlink:href="#entry" x="860" y="835"/>
+ <use xlink:href="#entry" x="870" y="950"/>
+ <use xlink:href="#entry" x="900" y="900"/>
+ <use xlink:href="#entry" x="930" y="835"/>
+ <use xlink:href="#entry" x="940" y="950"/>
+ <use xlink:href="#entry" x="970" y="900"/>
+ <use xlink:href="#entry" x="1000" y="835"/>
+ <use xlink:href="#entry" x="1010" y="950"/>
+
+</svg>
View
22 runtests.py
@@ -1,11 +1,25 @@
#!/usr/bin/env python
-import glob, trace, unittest, os, sys
+import glob, unittest, os, sys
-# start in a consistent, predictable location
-os.chdir(sys.path[0])
+# python 2.2 accomodations
+try:
+ from trace import fullmodname
+except:
+ def fullmodname(path):
+ return os.path.splitext(path)[0].replace(os.sep, '.')
+
+# more python 2.2 accomodations
+if not hasattr(unittest.TestCase, 'assertTrue'):
+ unittest.TestCase.assertTrue = unittest.TestCase.assert_
+if not hasattr(unittest.TestCase, 'assertFalse'):
+ unittest.TestCase.assertFalse = unittest.TestCase.failIf
+
+# try to start in a consistent, predictable location
+if sys.path[0]: os.chdir(sys.path[0])
+sys.path[0] = os.getcwd()
# find all of the planet test modules
-modules = map(trace.fullmodname, glob.glob(os.path.join('tests', 'test_*.py')))
+modules = map(fullmodname, glob.glob(os.path.join('tests', 'test_*.py')))
# load all of the tests into a suite
suite = unittest.TestLoader().loadTestsFromNames(modules)

0 comments on commit 4b23c2f

Please sign in to comment.
Something went wrong with that request. Please try again.