--- quixote1-1.2.orig/fcgi.py +++ quixote1-1.2/fcgi.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python1.5 +#! /usr/bin/python #------------------------------------------------------------------------ # Copyright (c) 1998 by Total Control Software # All Rights Reserved --- quixote1-1.2.orig/ptlc_dump.py +++ quixote1-1.2/ptlc_dump.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/python """ Dump the information contained in a compiled PTL file. Based on the dumppyc.py script in the Tools/compiler directory of the Python --- quixote1-1.2.orig/ptl_compile.py +++ quixote1-1.2/ptl_compile.py @@ -1,4 +1,4 @@ -#!/www/python/bin/python +#! /usr/bin/python #$HeadURL: svn+ssh://svn/repos/trunk/quixote/ptl_compile.py $ #$Id: ptl_compile.py 25234 2004-09-30 17:36:19Z nascheme $ @@ -44,6 +44,12 @@ MARKUP_CLASS = "htmltext" MARKUP_MANGLED_CLASS = "_q_htmltext" +# Relative import level argument for "import from" statement +if sys.version_info >= (2, 5): + _from_level = [0] +else: + _from_level = [] + class TemplateTransformer(transformer.Transformer): def __init__(self, *args, **kwargs): @@ -55,8 +61,9 @@ # beginning of the module. doc = None # self.get_docstring(nodelist, symbol.file_input) - io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)]) - markup_imp = ast.From(MARKUP_MODULE, [(MARKUP_CLASS, None)]) + io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)], *_from_level) + markup_imp = ast.From(MARKUP_MODULE, [(MARKUP_CLASS, None)], + *_from_level) markup_assign = ast.Assign([ast.AssName(MARKUP_MANGLED_CLASS, OP_ASSIGN)], ast.Name(MARKUP_CLASS)) --- quixote1-1.2.orig/demo/demo_scgi.py +++ quixote1-1.2/demo/demo_scgi.py @@ -1,4 +1,4 @@ -#!/www/python/bin/python +#! /usr/bin/python # Example SCGI driver script for the Quixote demo: publishes the contents of # the quixote.demo package. To use this script with mod_scgi and Apache --- quixote1-1.2.orig/server/twisted_http.py +++ quixote1-1.2/server/twisted_http.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python """ twist -- Demo of an HTTP server built on top of Twisted Python. --- quixote1-1.2.orig/server/medusa_http.py +++ quixote1-1.2/server/medusa_http.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python """quixote.server.medusa_http --- quixote1-1.2.orig/debian/compat +++ quixote1-1.2/debian/compat @@ -0,0 +1 @@ +7 --- quixote1-1.2.orig/debian/rules +++ quixote1-1.2/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DESTDIR=$(CURDIR)/debian/python-quixote1/usr + +PYVERS=$(shell pyversions -rs) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build-indep: ; + +build build-arch: build-stamp + +build-stamp: + dh_testdir + + for python in $(PYVERS); do \ + $$python setup.py build ; \ + done + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + for python in $(PYVERS); do \ + $$python setup.py clean --all ; \ + done + -rm -rf $(CURDIR)/debian/python-quixote + find . -name '*.pyc' -exec rm {} \; + -rm -rf $(CURDIR)/debian/quixote-doc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + for python in $(PYVERS); do \ + $$python setup.py install --prefix=$(DESTDIR) --no-compile --install-layout=deb; \ + done + +binary-indep: + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installchangelogs -i + dh_compress -X.cgi -X.py -X.conf -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdocs -a + dh_installexamples -a + dh_installchangelogs -a + dh_link -a + dh_strip -a + dh_compress -a + dh_pysupport -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install --- quixote1-1.2.orig/debian/control +++ quixote1-1.2/debian/control @@ -0,0 +1,45 @@ +Source: quixote1 +Section: web +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: Santiago Ruano Rincón +Build-Depends: debhelper (>= 7), python (>= 2.5.4-1~), python-all-dev (>= 2.5.4-1~), python-support (>= 0.3) +Standards-Version: 3.9.2 +Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/quixote1/trunk/ +Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/quixote1/trunk/ +Homepage: http://www.mems-exchange.org/software/quixote/ + +Package: python-quixote1 +Section: python +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +Conflicts: quixote1, quixote, python-quixote +Replaces: quixote1, quixote, python-quixote +Provides: ${python:Provides} +Description: highly Pythonic Web application framework + Quixote is yet another framework for developing Web applications in + Python. The design goals were: + . + 1) To allow easy development of Web applications where the + emphasis is more on complicated programming logic than + complicated templating. + . + 2) To make the templating language as similar to Python as possible, + in both syntax and semantics. The aim is to make as many of the + skills and structural techniques used in writing regular Python + code applicable to Web applications built using Quixote. + . + 3) No magic. When it's not obvious what to do in + a certain case, Quixote refuses to guess. + . + If you view a web site as a program, and web pages as subroutines, + Quixote just might be the tool for you. If you view a web site as a + graphic design showcase, and each web page as an individual work of + art, Quixote is probably not what you're looking for. + +Package: quixote1-doc +Section: doc +Architecture: all +Depends: python-quixote1, ${misc:Depends} +Description: Quixote web application framework documentation + Contains the documentation and examples for Quixote-1.2. --- quixote1-1.2.orig/debian/quixote1-doc.docs +++ quixote1-1.2/debian/quixote1-doc.docs @@ -0,0 +1,33 @@ +ACKS +README +TODO +doc/PTL.txt +doc/demo.txt +doc/demo.html +doc/default.css +doc/form2conversion.txt +doc/form2conversion.html +doc/multi-threaded.txt +doc/multi-threaded.html +doc/programming.txt +doc/programming.html +doc/session-mgmt.txt +doc/session-mgmt.html +doc/static-files.txt +doc/static-files.html +doc/upgrading.txt +doc/upgrading.html +doc/upload.txt +doc/upload.html +doc/web-server.txt +doc/web-server.html +doc/web-services.txt +doc/web-services.html +doc/widgets.txt +doc/widgets.html +demo/demo.cgi +demo/demo.conf +demo/demo_scgi.py +demo/demo_scgi.sh +demo/session_demo.cgi +demo/upload.cgi --- quixote1-1.2.orig/debian/changelog +++ quixote1-1.2/debian/changelog @@ -0,0 +1,85 @@ +quixote1 (1.2-5) unstable; urgency=low + + * Team upload. + + [ Piotr Ożarowski ] + * Added Vcs-Svn and Vcs-Browser fields + + [ Sandro Tosi ] + * debian/control + - uniforming Vcs-Browser field + - switch Vcs-Browser field to viewsvn + - set quixote1-doc as arch:all; thanks to Aurelien Jarno for the report; + Closes: #517602 + + [ Carlos Galisteo ] + * debian/control: + - Added Homepage field. + + [ Julien Lavergne ] + * From Ubuntu, prepare for the future python transition: + - debian/rules: + + Add --install-layout=deb to setup.py install + - debian/control: + + Bump build-depends to python and python-all-dev (>= 2.5.4-1~) + + [ Jakub Wilk ] + * Add watch file. + * Don't run dh_python, which is obsolete (Closes: #715306). + * Remove obsolete lintian overrides. + * Don't start description synopsis with an article. + * Put python-quixote1 in section python, quixote1-doc in section doc. + * Add ${misc:Depends} and ${shlibs:Depeds}. + * Bump debhelper compat level to 7. + + Use debian/compat rather than setting DH_COMPAT in debian/rules. + + Bump minimum required debhelper version. + + Use dh_prep instead of dh_clean -k. + * Bump standards version to 3.9.2 (no changes needed). + * Add build-arch and build-indep targets. + * Implement binary-indep target. + * Don't install duplicate changelog file. + * Run dh_fixperms after dh_pysupport. + * Use canonical URIs for Vcs-* fields. + * Drop obsolete Conflicts/Replaces with python2.3-quixote1 and + python2.4-quixote1. + + [ Luca Falavigna ] + * Remove obsolete XB-Python-Version field. + * Remove obsolete pycompat file. + + -- Luca Falavigna Sun, 14 Jul 2013 02:16:45 +0200 + +quixote1 (1.2-4.1) unstable; urgency=low + + * Non-maintainer upload + * Update ptl_compile for compatibility with Python 2.5 (Closes: #484360) + + -- Ben Hutchings Fri, 28 Nov 2008 23:16:58 +0000 + +quixote1 (1.2-4) unstable; urgency=low + + * Updated to the new python policy (Closes: #380926) + + -- Santiago Ruano Rincón Thu, 10 Aug 2006 22:13:36 -0500 + +quixote1 (1.2-3) unstable; urgency=low + + * Added build-dependecy on python + + -- Santiago Ruano Rincón Tue, 25 Apr 2006 18:44:12 -0500 + +quixote1 (1.2-2) unstable; urgency=low + + * New maintainer address + * Added to python modules packaging team + * Building python2.3-quixote1 and python2.4-quixote1 packages + * Fixed a conflict with quixote 2.X package (Closes: #363240) + + -- Santiago Ruano Rincón Mon, 24 Apr 2006 22:13:56 -0500 + +quixote1 (1.2-1) unstable; urgency=low + + * Initial debian release. (Closes: #327265: ITP: quixote1 -- A highly + Pythonic Web application framework) + + -- Santiago Ruano Rincon Thu, 8 Sep 2005 16:01:01 -0500 --- quixote1-1.2.orig/debian/pyversions +++ quixote1-1.2/debian/pyversions @@ -0,0 +1 @@ +all --- quixote1-1.2.orig/debian/README.Debian +++ quixote1-1.2/debian/README.Debian @@ -0,0 +1,9 @@ +To install the demo: + + # cp /usr/share/doc/quixote1/demo.{cgi,conf} /usr/lib/cgi-bin + # chmod +x /usr/lib/cgi-bin/demo.cgi + +Assuming your web server is installed, you should now be able to view the demo +at http://localhost/cgi-bin/demo.cgi . + + Neil Schemenauer --- quixote1-1.2.orig/debian/python-quixote1.docs +++ quixote1-1.2/debian/python-quixote1.docs @@ -0,0 +1 @@ +debian/README.Debian --- quixote1-1.2.orig/debian/copyright +++ quixote1-1.2/debian/copyright @@ -0,0 +1,130 @@ +This package was debianized by Santiago Ruano Rincón on +Mon, 5 Sep 2005 23:25:24 -0500 +based on the old quixote package by Neil Schemenauer + +It was downloaded from http://www.mems-exchange.org/software/quixote/ + +Upstream Authors: {akuchlin,gward,nas}@mems-exchange.org + +Copyright: + +CNRI OPEN SOURCE LICENSE AGREEMENT + +IMPORTANT: PLEASE READ THE FOLLOWING AGREEMENT CAREFULLY. BY +COPYING, INSTALLING OR OTHERWISE USING QUIXOTE-1.0 SOFTWARE, YOU +ARE DEEMED TO HAVE AGREED TO THE TERMS AND CONDITIONS OF THIS +LICENSE AGREEMENT. + +1. This LICENSE AGREEMENT is between Corporation for National + Research Initiatives, having an office at 1895 Preston White + Drive, Reston, VA 20191 ("CNRI"), and the Individual or + Organization ("Licensee") copying, installing or otherwise using + Quixote-1.0 software in source or binary form and its associated + documentation ("Quixote"). + +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 + Quixote alone or in any derivative version, provided, however, + that CNRI's License Agreement and CNRI's notice of copyright, + i.e., "Copyright (c) 2004 Corporation for National Research + Initiatives; All Rights Reserved" are retained in Quixote alone + or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on + or incorporates Quixote 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 Quixote. + +4. CNRI is making Quixote 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 QUIXOTE + WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + +5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF + QUIXOTE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR + LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING + QUIXOTE, 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 and interpreted in + all respects by the law of the State of Virginia, excluding + Virginia's conflict of law provisions. 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 copying, installing or otherwise using Quixote, Licensee + agrees to be bound by the terms and conditions of this License + Agreement. + + + +Zope Public License (ZPL) Version 2.0 +----------------------------------------------- + +This software is Copyright (c) Zope Corporation (tm) and +Contributors. All rights reserved. + +This license has been certified as open source. It has also +been designated as GPL compatible by the Free Software +Foundation (FSF). + +Redistribution and use in source and binary forms, with or +without modification, are permitted provided that the +following conditions are met: + +1. Redistributions in source code must retain the above + copyright notice, this list of conditions, and the following + disclaimer. + +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + +3. The name Zope Corporation (tm) must not be used to + endorse or promote products derived from this software + without prior written permission from Zope Corporation. + +4. The right to distribute this software or to use it for + any purpose does not give you the right to use Servicemarks + (sm) or Trademarks (tm) of Zope Corporation. Use of them is + covered in a separate agreement (see + http://www.zope.com/Marks). + +5. If any files are modified, you must cause the modified + files to carry prominent notices stating that you changed + the files and the date of any change. + +Disclaimer + + THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' + AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + + +This software consists of contributions made by Zope +Corporation and many individuals on behalf of Zope +Corporation. Specific attributions are listed in the +accompanying credits file. --- quixote1-1.2.orig/debian/watch +++ quixote1-1.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://quixote.ca/releases/Quixote-(1[.][0-9.]+).tar.gz --- quixote1-1.2.orig/debian/source/format +++ quixote1-1.2/debian/source/format @@ -0,0 +1 @@ +1.0