code
stringlengths
1
1.72M
language
stringclasses
1 value
"""$Id: channel.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license_...
Python
"""$Id: generator.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: skipHours.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: skipDays.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: text_plain.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licen...
Python
"""$Id: text_html.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: application_test.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" _...
Python
"""$Id: text_xml.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: base.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: entry.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ ...
Python
"""$Id: feed.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: validators.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licen...
Python
#$Id #### # Copyright 2000,2001 by Timothy O'Malley <timo@alum.mit.edu> # # 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...
Python
"""$Id: base.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: content.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license_...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: en.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ = "...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: author.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__...
Python
"""$Id: image.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ ...
Python
"""$Id: messagetest.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __lice...
Python
"""$Id: validtest.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: demo.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
#!/usr/bin/env python from config import * import cgi, sys, os, urlparse, sys, re import cgitb cgitb.enable() if PYDIR not in sys.path: sys.path.insert(0, PYDIR) if WEBDIR not in sys.path: sys.path.insert(0, WEBDIR) if SRCDIR not in sys.path: sys.path.insert(0, SRCDIR) import feedvalidator from feedvali...
Python
# This following value is primarily used for setting up the other values... HOMEDIR = r'/home/rubys' # This is where local python libraries are installed. This may be useful # for locating a locally installed libxml2 library, for example... PYDIR = HOMEDIR + r'/lib/python/' # This is where the CGI itself is... othe...
Python
#!/usr/bin/env python """Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit http://feedparser.org/ for the latest version Visit http://feedparser.org/docs/ for the latest documentation Required: Python 2.1 or later Recommended: Python 2.3 or later Recommended: CJKCodecs...
Python
#!/usr/bin/env python import glob, unittest, os, sys from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass # 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 module...
Python
from gettext import gettext as _ class Reportable: """Base class for all the errors, warnings and suggestions.""" text = "" def __init__(self, extra = None): self.extra = extra self.context = "" if hasattr(self, 'pace'): self.extra = self.extra + ("\n [Pace%s]" % self...
Python
from distutils.core import setup import py2exe setup(console=["appeditor.py"])
Python
#!/usr/bin/env python import glob, unittest, os, sys from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass # 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 module...
Python
#!/usr/bin/env python2.4 import httplib2 import apptools try: from xml.etree.ElementTree import fromstring, tostring except: from elementtree.ElementTree import fromstring, tostring import sha import cStringIO from urlparse import urljoin import os import anydbm ATOM = "{http://www.w3.org/2005/Atom}%s" APP =...
Python
#!/usr/bin/env python """Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit http://feedparser.org/ for the latest version Visit http://feedparser.org/docs/ for the latest documentation Required: Python 2.1 or later Recommended: Python 2.3 or later Recommended: CJKCodecs...
Python
#!/usr/bin/env python2.4 import httplib2 import apptools try: from xml.etree.ElementTree import fromstring, tostring except: from elementtree.ElementTree import fromstring, tostring import sha import cStringIO from urlparse import urljoin import os import anydbm ATOM = "{http://www.w3.org/2005/Atom}%s" APP =...
Python
__author__ = "Joe Gregorio <http://bitworking.org/>" __version__ = "$Revision: 150 $" __copyright__ = "Copyright (c) 2006 Joe Gregorio" __license__ = "MIT" ATOM = "http://www.w3.org/2005/Atom" ATOM_LINK = "{%s}link" % ATOM ATOM_ENTRY = "{%s}entry" % ATOM ATOM_TITLE= "{%s}title" % ATOM APP = "http://purl.org/atom/app#...
Python
import logging try: from xml.etree.ElementTree import fromstring, tostring, SubElement except: from elementtree.ElementTree import fromstring, tostring, SubElement import re from urlparse import urljoin from StringIO import StringIO ATOM = "{http://www.w3.org/2005/Atom}%s" APP = "{http://purl.org/atom/app#}%s...
Python
#!/usr/bin/env python from config import * import cgi, sys, os, urlparse, sys, re import cgitb cgitb.enable() if PYDIR not in sys.path: sys.path.insert(0, PYDIR) if WEBDIR not in sys.path: sys.path.insert(0, WEBDIR) if SRCDIR not in sys.path: sys.path.insert(0, SRCDIR) import feedvalidator from feedvali...
Python
"""$Id: compatibility.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __li...
Python
"""$Id: root.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: item.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: rdf.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ = ...
Python
"""$Id: iso639codes.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __lice...
Python
"""$Id: logging.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license_...
Python
"""$Id: rss.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ = ...
Python
"""$Id: textInput.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: link.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: channel.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license_...
Python
"""$Id: generator.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: skipHours.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: skipDays.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: text_plain.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licen...
Python
"""$Id: text_html.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: application_test.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" _...
Python
"""$Id: text_xml.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: base.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: entry.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ ...
Python
"""$Id: feed.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: validators.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licen...
Python
#$Id #### # Copyright 2000,2001 by Timothy O'Malley <timo@alum.mit.edu> # # 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...
Python
"""$Id: base.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
"""$Id: content.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license_...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: en.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ = "...
Python
"""$Id: __init__.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license...
Python
"""$Id: author.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__...
Python
"""$Id: image.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ ...
Python
"""$Id: messagetest.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __lice...
Python
"""$Id: validtest.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __licens...
Python
"""$Id: demo.py 4 2004-02-03 17:31:11Z rubys $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 4 $" __date__ = "$Date: 2004-02-03 17:31:11 +0000 (Tue, 03 Feb 2004) $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" __license__ =...
Python
#!/usr/bin/env python from config import * import cgi, sys, os, urlparse, sys, re import cgitb cgitb.enable() if PYDIR not in sys.path: sys.path.insert(0, PYDIR) if WEBDIR not in sys.path: sys.path.insert(0, WEBDIR) if SRCDIR not in sys.path: sys.path.insert(0, SRCDIR) import feedvalidator from feedvali...
Python
# This following value is primarily used for setting up the other values... HOMEDIR = r'/home/rubys' # This is where local python libraries are installed. This may be useful # for locating a locally installed libxml2 library, for example... PYDIR = HOMEDIR + r'/lib/python/' # This is where the CGI itself is... othe...
Python
#!/usr/bin/env python from config import * import cgi, cgitb, sys cgitb.enable() import codecs ENCODING='UTF-8' sys.stdout = codecs.getwriter(ENCODING)(sys.stdout) if SRCDIR not in sys.path: sys.path.insert(0, SRCDIR) class request: content_type = "text/html" from index import index fs = cgi.FieldStorage() ...
Python
modules = [ 'testUri', 'testXmlEncoding', 'testXmlEncodingDecode', 'testMediaTypes', 'testHowtoNs', 'validtest', 'mkmsgs', ] if __name__ == '__main__': import os, sys, unittest srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)),'src') testdir = os.path.join(srcdir...
Python
# Copyright (c) 2002, 2003, 2005 Allan Saddi <allan@saddi.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, th...
Python
#!/usr/bin/env python from config import * import cgi, sys, os, urlparse, sys, re, urllib import cgitb cgitb.enable() import codecs ENCODING='UTF-8' sys.stdout = codecs.getwriter(ENCODING)(sys.stdout) # Used for CGI parameters decUTF8 = codecs.getdecoder('utf-8') decW1252 = codecs.getdecoder('windows-1252') if PYDI...
Python
"""feedfinder: Find the Web feed for a Web page http://www.aaronsw.com/2002/feedfinder/ Usage: feed(uri) - returns feed found for a URI feeds(uri) - returns all feeds found for a URI >>> import feedfinder >>> feedfinder.feed('scripting.com') 'http://scripting.com/rss.xml' >>> >>> feedfinder.fe...
Python
from setuptools import setup, find_packages import sys, os version = '' setup(name='feedvalidator', version=version, description="Validator for feeds", long_description= \ """Feedvalidator validates feeds in a variety of syndication formats. """, # Get more strings from http://www....
Python
"""$Id: uri.py 988 2008-03-12 18:22:48Z sa3ruby $""" """ Code to test URI references for validity, and give their normalized form, according to RFC 3986. """ __author__ = "Joseph Walton <http://www.kafsemo.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2004, 2007 Joseph Walton" from urlparse ...
Python
"""$Id: compatibility.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from logging import * def _must(event): return isinstance(eve...
Python
"""$Id: root.py 1049 2009-05-06 02:00:03Z rothfuss $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 1049 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase rss11_namespace='http://purl.org/net/r...
Python
"""$Id: item.py 1019 2008-06-03 05:13:16Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 1019 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from validators import * from logging im...
Python
from base import validatorBase from category import category from validators import yesno from logging import ConflictingCatAttr, ConflictingCatChildren class categories(validatorBase): def getExpectedAttrNames(self): return [(None,u'scheme'),(None,u'fixed'),(None,u'href')] def prevalidate(self): self.val...
Python
from base import validatorBase from validators import * class xrds(validatorBase): def do_xrd_XRD(self): return xrd() class xrd(validatorBase): def do_xrd_Service(self): return service() class service(validatorBase): def getExpectedAttrNames(self): return [(None,'priority')] def prevalidate(self)...
Python
"""$Id: rdf.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from logging import * from validators impor...
Python
"""$Id: iso639codes.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" isoLang = \ {'aa': 'Afar', 'ab': 'Abkhazian', 'ae': ...
Python
from base import validatorBase from validators import * from logging import InvalidSseType, InvalidNSS, MissingElement, MissingByAndWhenAttrs import re class Sharing(validatorBase): def getExpectedAttrNames(self): return [ (None, u'expires'), (None, u'since'), (None, u'until') ] def prevalidate(self): if...
Python
"""$Id: logging.py 1059 2009-11-12 22:08:04Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 1059 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" # feed types TYPE_UNKNOWN = 0 TYPE_RSS1 = 1 TYPE_RSS2 = 2 TYPE_ATOM ...
Python
"""$Id: itunes.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from validators import * class itunes: def do_itunes_author(self): ...
Python
# http://msdn.microsoft.com/XML/rss/sle/default.aspx from base import validatorBase from validators import eater, text class sort(validatorBase): def getExpectedAttrNames(self): return [(None,u'data-type'),(None,u'default'),(None,u'element'),(None, u'label'),(None,u'ns')] class group(validatorBase): def ge...
Python
"""$Id: rss.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from logging import * from validators impor...
Python
"""$Id: textInput.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from validators import * from extension import extension_everywhere ...
Python
"""$Id: link.py 1060 2010-01-23 01:29:14Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 1060 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from validators import * # # Atom link ...
Python
"""$Id: channel.py 1033 2008-11-18 11:35:34Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 1033 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from logging import * from validators...
Python
""" $Id: mediaTypes.py 988 2008-03-12 18:22:48Z sa3ruby $ This module deals with valid internet media types for feeds. """ __author__ = "Joseph Walton <http://www.kafsemo.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2004 Joseph Walton" from cgi import parse_header from logging import * FEED...
Python
"""$Id: category.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from validators import * # # author e...
Python
from validators import * from logging import * import re class OpenSearchDescription(validatorBase): def __init__(self): self.exampleFound = 0 validatorBase.__init__(self) def validate(self): name=self.name.replace("opensearch_",'') if not "ShortName" in self.children: self.log(MissingElemen...
Python
#!/usr/bin/python """ $Id$ This module deals with detecting XML encodings, using both BOMs and explicit declarations. """ __author__ = "Joseph Walton <http://www.kafsemo.org/>" __version__ = "$Revision$" __copyright__ = "Copyright (c) 2004 Joseph Walton" import codecs import re from logging import ObscureEncoding, N...
Python
"""$Id: generator.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from validators import * # # Atom ge...
Python
"""$Id: skipHours.py 988 2008-03-12 18:22:48Z sa3ruby $""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision: 988 $" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" from base import validatorBase from validators import text from logg...
Python