Skip to content

Commit 3da0b58

Browse files
author
Richard Jones
committed
Adhering to ZPL
1 parent ce31076 commit 3da0b58

File tree

8 files changed

+114
-8
lines changed

8 files changed

+114
-8
lines changed

README.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
3333
SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
3434

3535

36-
The stylesheet included with this package has been copied from the Zope
37-
management interface and presumably belongs to Digital Creations.
36+
PageTemplates Licensing
37+
-----------------------
38+
39+
Portions of this code (roundup.cgi.PageTemplates, roundup.cgi.TAL and
40+
roundup.cgi.ZTUtils) have been copied from Zope. They have been modified in
41+
the following manner:
42+
43+
- removal of unit tests, Zope-specific code and support files from
44+
PageTemplates: PageTemplateFile.py, ZPythonExpr.py, ZRPythonExpr.py,
45+
ZopePageTemplate.py, examples, help, tests, CHANGES.txt, HISTORY.txt,
46+
version.txt and www. From TAL: DummyEngine.py, HISTORY.txt, CHANGES.txt,
47+
benchmark, driver.py, markbench.py, ndiff.py, runtest.py, setpath.py,
48+
tests and timer.py. From ZTUtils: SimpleTree.py, Zope.py, CHANGES.txt and
49+
HISTORY.txt.
50+
- editing to remove dependencies on Zope modules (see files for change notes)
51+
52+
The license for this code is in doc/ZPL.txt.
3853

doc/ZPL.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Zope Public License (ZPL) Version 2.0
2+
-----------------------------------------------
3+
4+
This software is Copyright (c) Zope Corporation (tm) and
5+
Contributors. All rights reserved.
6+
7+
This license has been certified as open source. It has also
8+
been designated as GPL compatible by the Free Software
9+
Foundation (FSF).
10+
11+
Redistribution and use in source and binary forms, with or
12+
without modification, are permitted provided that the
13+
following conditions are met:
14+
15+
1. Redistributions in source code must retain the above
16+
copyright notice, this list of conditions, and the following
17+
disclaimer.
18+
19+
2. Redistributions in binary form must reproduce the above
20+
copyright notice, this list of conditions, and the following
21+
disclaimer in the documentation and/or other materials
22+
provided with the distribution.
23+
24+
3. The name Zope Corporation (tm) must not be used to
25+
endorse or promote products derived from this software
26+
without prior written permission from Zope Corporation.
27+
28+
4. The right to distribute this software or to use it for
29+
any purpose does not give you the right to use Servicemarks
30+
(sm) or Trademarks (tm) of Zope Corporation. Use of them is
31+
covered in a separate agreement (see
32+
http://www.zope.com/Marks).
33+
34+
5. If any files are modified, you must cause the modified
35+
files to carry prominent notices stating that you changed
36+
the files and the date of any change.
37+
38+
Disclaimer
39+
40+
THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS''
41+
AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
42+
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
43+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
44+
NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE
45+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
46+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
50+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
51+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
52+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
53+
DAMAGE.
54+
55+
56+
This software consists of contributions made by Zope
57+
Corporation and many individuals on behalf of Zope
58+
Corporation. Specific attributions are listed in the
59+
accompanying credits file.

roundup/cgi/PageTemplates/Expressions.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@
1515
1616
Page Template-specific implementation of TALES, with handlers
1717
for Python expressions, string literals, and paths.
18+
19+
20+
Modified for Roundup 0.5 release:
21+
22+
- Removed all Zope-specific code (doesn't even try to import that stuff now)
23+
- Removed all Acquisition
24+
- Made traceback info more informative
25+
1826
"""
1927

20-
__version__='$Revision: 1.2 $'[11:-2]
28+
__version__='$Revision: 1.3 $'[11:-2]
2129

2230
import re, sys
2331
from TALES import Engine, CompilerError, _valid_name, NAME_RE, \

roundup/cgi/PageTemplates/PageTemplate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
"""Page Template module
1414
1515
HTML- and XML-based template objects using TAL, TALES, and METAL.
16+
17+
18+
Modified for Roundup 0.5 release:
19+
20+
- changed imports to import from roundup.cgi
21+
1622
"""
1723

18-
__version__='$Revision: 1.1 $'[11:-2]
24+
__version__='$Revision: 1.2 $'[11:-2]
1925

2026
import sys
2127

roundup/cgi/PageTemplates/PythonExpr.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
##############################################################################
1313

1414
"""Generic Python Expression Handler
15+
16+
Modified for Roundup 0.5 release:
17+
18+
- more informative traceback info
19+
1520
"""
1621

17-
__version__='$Revision: 1.2 $'[11:-2]
22+
__version__='$Revision: 1.3 $'[11:-2]
1823

1924
from TALES import CompilerError
2025
from string import strip, split, join, replace, lstrip

roundup/cgi/PageTemplates/TALES.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@
1313
"""TALES
1414
1515
An implementation of a generic TALES engine
16+
17+
Modified for Roundup 0.5 release:
18+
19+
- changed imports to import from roundup.cgi
1620
"""
1721

18-
__version__='$Revision: 1.1 $'[11:-2]
22+
__version__='$Revision: 1.2 $'[11:-2]
1923

2024
import re, sys
2125
from roundup.cgi import ZTUtils

roundup/cgi/TAL/XMLParser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
##############################################################################
1414
"""
1515
Generic expat-based XML parser base class.
16+
17+
Modified for Roundup 0.5 release:
18+
19+
- removed dependency on zLOG
20+
1621
"""
1722

1823
class XMLParser:

roundup/cgi/ZTUtils/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
##############################################################################
1313
__doc__='''Package of template utility classes and functions.
1414
15-
$Id: __init__.py,v 1.1 2002-09-05 00:37:09 richard Exp $'''
16-
__version__='$Revision: 1.1 $'[11:-2]
15+
Modified for Roundup 0.5 release:
16+
17+
- removed Zope imports
18+
19+
$Id: __init__.py,v 1.2 2002-09-07 22:42:47 richard Exp $'''
20+
__version__='$Revision: 1.2 $'[11:-2]
1721

1822
from Batch import Batch
1923
from Iterator import Iterator

0 commit comments

Comments
 (0)