Changeset 59

Show
Ignore:
Timestamp:
07/25/07 20:53:43 (1 year ago)
Author:
edsuom
Message:

Minor bug fix & file header updates for twisted_goodies.simpleserver

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/Twisted-Goodies/trunk/misc/var_www_foss.tellectual.com_index.py

    r57 r59  
    1 # DynamicSite
     1# twisted_goodies.simpleserver.http
    22# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
    33# virtual host content. Subdirectories can be python packages providing dynamic 
    44# content with a root resource object, or sources of static content. 
    55# 
    6 # Copyright (C) 2006 by Edwin A. Suominen, http://www.eepatents.com 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
    77# 
    88# This program is free software; you can redistribute it and/or modify it under 
     
    2020 
    2121""" 
    22 B{foss.eepatents.com}: Root resource for my free & open source projects, 
    23 including access to Trac via an WSGI gateway. 
     22This file is what defines the root resource for U{foss.eepatents.com}, my free 
     23& open source projects site. A L{WSGIResource} is used to provide access to 
     24Trac via an WSGI gateway. 
    2425""" 
    2526 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/auth.py

    r17 r59  
    1 # DynamicSite
     1# twisted_goodies.simpleserver.http
    22# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
    33# virtual host content. Subdirectories can be python packages providing dynamic 
    44# content with a root resource object, or sources of static content. 
    55# 
    6 # Copyright (C) 2006 by Edwin A. Suominen, http://www.eepatents.com 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
    77# 
    88# This program is free software; you can redistribute it and/or modify it under 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/resources.py

    r57 r59  
    1 # DynamicSite
     1# twisted_goodies.simpleserver.http
    22# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
    33# virtual host content. Subdirectories can be python packages providing dynamic 
    44# content with a root resource object, or sources of static content. 
    55# 
    6 # Copyright (C) 2006 by Edwin A. Suominen, http://www.eepatents.com 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
    77# 
    88# This program is free software; you can redistribute it and/or modify it under 
     
    2727from twisted.python.log import msg as log 
    2828from twisted.web2 import http, http_headers 
    29 from twisted.web2.resource import Resource 
     29from twisted.web2.resource import Resource, RedirectResource 
    3030 
    3131# Pick one, either one... 
     
    3535import util 
    3636 
    37 # for TracResource 
     37# Just for TracResource 
    3838import trac.web.main 
    39 # for StanResource 
     39# Just for StanResource 
    4040from nevow import flat, tags as T 
    41 # for ProxyResource 
     41# Just for ProxyResource 
    4242from zope.interface import implements 
    4343from twisted.internet import reactor, protocol, ssl 
    4444from twisted.web2 import iweb 
    4545import twisted.web2.client.http as chttp 
    46 # For APIDocResource 
     46# Just For APIDocResource 
    4747import tempfile, shutil, os.path 
    4848from twisted.internet import defer, utils 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/rest/directives.py

    r17 r59  
    1 # Copyright (C) 2004  by Edwin A. Suominen 
    2 # Registered Patent Agent 
    3 # Open Source Developer (Yes, both...) 
    4 # Web Site: http://www.eepatents.com 
     1# twisted_goodies.simpleserver.http: 
     2# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
     3# virtual host content. Subdirectories can be python packages providing dynamic 
     4# content with a root resource object, or sources of static content. 
    55# 
    6 # This module is free software; you can redistribute it and/or modify it under 
    7 # the terms of version 2.1 of the GNU Lesser General Public License as 
    8 # published by the Free Software Foundation. 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
     7
     8# This program is free software; you can redistribute it and/or modify it under 
     9# the terms of the GNU General Public License as published by the Free Software 
     10# Foundation; either version 2 of the License, or (at your option) any later 
     11# version. 
    912#  
    10 # This module is distributed in the hope that it will be useful, but WITHOUT 
     13# This program is distributed in the hope that it will be useful, but WITHOUT 
    1114# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
    12 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
    13 # details. 
     15# FOR A PARTICULAR PURPOSE.  See the file COPYING for more details. 
    1416#  
    15 # You should have received a copy of the GNU Lesser General Public 
    16 # License along with this library; if not, write to the Free Software 
    17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     17# You should have received a copy of the GNU General Public License along with 
     18# this program; if not, write to the Free Software Foundation, Inc., 51 
     19# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 
    1820 
    1921""" 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/rest/page.py

    r17 r59  
    1 # Copyright (C) 2004  by Edwin A. Suominen 
    2 # Registered Patent Agent 
    3 # Open Source Developer (Yes, both...) 
    4 # Web Site: http://www.eepatents.com 
     1# twisted_goodies.simpleserver.http: 
     2# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
     3# virtual host content. Subdirectories can be python packages providing dynamic 
     4# content with a root resource object, or sources of static content. 
    55# 
    6 # This module is free software; you can redistribute it and/or modify it under 
    7 # the terms of version 2.1 of the GNU Lesser General Public License as 
    8 # published by the Free Software Foundation. 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
     7
     8# This program is free software; you can redistribute it and/or modify it under 
     9# the terms of the GNU General Public License as published by the Free Software 
     10# Foundation; either version 2 of the License, or (at your option) any later 
     11# version. 
    912#  
    10 # This module is distributed in the hope that it will be useful, but WITHOUT 
     13# This program is distributed in the hope that it will be useful, but WITHOUT 
    1114# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
    12 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
    13 # details. 
     15# FOR A PARTICULAR PURPOSE.  See the file COPYING for more details. 
    1416#  
    15 # You should have received a copy of the GNU Lesser General Public 
    16 # License along with this library; if not, write to the Free Software 
    17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    18  
     17# You should have received a copy of the GNU General Public License along with 
     18# this program; if not, write to the Free Software Foundation, Inc., 51 
     19# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 
    1920 
    2021""" 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/startup.py

    r47 r59  
    1 # DynamicSite
     1# twisted_goodies.simpleserver.http
    22# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
    33# virtual host content. Subdirectories can be python packages providing dynamic 
    44# content with a root resource object, or sources of static content. 
    55# 
    6 # Copyright (C) 2006 by Edwin A. Suominen, http://www.eepatents.com 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
    77# 
    88# This program is free software; you can redistribute it and/or modify it under 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/util.py

    r17 r59  
    1 # DynamicSite
     1# twisted_goodies.simpleserver.http
    22# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
    33# virtual host content. Subdirectories can be python packages providing dynamic 
    44# content with a root resource object, or sources of static content. 
    55# 
    6 # Copyright (C) 2006 by Edwin A. Suominen, http://www.eepatents.com 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
    77# 
    88# This program is free software; you can redistribute it and/or modify it under 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/wsgi.py

    r58 r59  
     1# twisted_goodies.simpleserver.http: 
     2# A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
     3# virtual host content. Subdirectories can be python packages providing dynamic 
     4# content with a root resource object, or sources of static content. 
     5# 
     6# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com 
     7# 
     8# This program is free software; you can redistribute it and/or modify it under 
     9# the terms of the GNU General Public License as published by the Free Software 
     10# Foundation; either version 2 of the License, or (at your option) any later 
     11# version. 
     12#  
     13# This program is distributed in the hope that it will be useful, but WITHOUT 
     14# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
     15# FOR A PARTICULAR PURPOSE.  See the file COPYING for more details. 
     16#  
     17# You should have received a copy of the GNU General Public License along with 
     18# this program; if not, write to the Free Software Foundation, Inc., 51 
     19# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 
     20 
     21 
    122""" 
    223A non-blocking container resource for WSGI web applications. 
  • projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/__init__.py

    r45 r59  
    11""" 
    2 simpleserver.http 
     2twisted_goodies.simpleserver.http 
    33 
    4 A virtual hosting twisted.web2 HTTP server that uses subdirectories for virtual 
    5 host content. Subdirectories can be python packages providing dynamic content 
    6 with a root resource object, or sources of static content. 
     4A virtual hosting twisted.web2 HTTP server that uses subdirectories for 
     5virtual host content. Subdirectories can be python packages providing dynamic 
     6content with a root resource object, or sources of static content. 
    77 
    88Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com