Commit e8d22173 authored by Jim Fulton's avatar Jim Fulton

Detabification and new copyright.

parent ce259741
/*********************************************************** /*****************************************************************************
Copyright
Copyright 1997 Digital Creations, L.L.C., 910 Princess Anne
Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
rights reserved.
******************************************************************/
Zope Public License (ZPL) Version 0.9.4
---------------------------------------
Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
website, must either comply with the terms described below
under "Attribution" or alternatively secure a separate
license from Digital Creations.
4. All advertising materials, documentation, or technical papers
mentioning features derived from or use of this software must
display the following acknowledgement:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
5. Names associated with Zope or Digital Creations must not be
used to endorse or promote products derived from this
software without prior written permission from Digital
Creations.
6. Redistributions of any form whatsoever must retain the
following acknowledgment:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
7. Modifications are encouraged but must be packaged separately
as patches to official Zope releases. Distributions that do
not clearly separate the patches from the original work must
be clearly labeled as unofficial distributions.
Disclaimer
THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
Attribution
Individuals or organizations using this software as a web site
must provide attribution by placing the accompanying "button"
and a link to the accompanying "credits page" on the website's
main entry point. In cases where this placement of
attribution is not feasible, a separate arrangment must be
concluded with Digital Creations. Those using the software
for purposes other than web sites must provide a corresponding
attribution in locations that include a copyright using a
manner best suited to the application environment.
This software consists of contributions made by Digital
Creations and many individuals on behalf of Digital Creations.
Specific attributions are listed in the accompanying credits
file.
****************************************************************************/
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.4 1998/07/27 13:09:58 jim Exp $" "\n$Id: Record.c,v 1.5 1998/12/04 20:15:24 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -512,7 +586,7 @@ void ...@@ -512,7 +586,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +625,9 @@ initRecord() ...@@ -551,6 +625,9 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.5 1998/12/04 20:15:24 jim
Detabification and new copyright.
Revision 1.4 1998/07/27 13:09:58 jim Revision 1.4 1998/07/27 13:09:58 jim
Changed _p___reinit__ to _p_deactivate. Changed _p___reinit__ to _p_deactivate.
......
/*********************************************************** /*****************************************************************************
Copyright
Copyright 1997 Digital Creations, L.L.C., 910 Princess Anne
Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
rights reserved.
******************************************************************/
Zope Public License (ZPL) Version 0.9.4
---------------------------------------
Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
website, must either comply with the terms described below
under "Attribution" or alternatively secure a separate
license from Digital Creations.
4. All advertising materials, documentation, or technical papers
mentioning features derived from or use of this software must
display the following acknowledgement:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
5. Names associated with Zope or Digital Creations must not be
used to endorse or promote products derived from this
software without prior written permission from Digital
Creations.
6. Redistributions of any form whatsoever must retain the
following acknowledgment:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
7. Modifications are encouraged but must be packaged separately
as patches to official Zope releases. Distributions that do
not clearly separate the patches from the original work must
be clearly labeled as unofficial distributions.
Disclaimer
THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
Attribution
Individuals or organizations using this software as a web site
must provide attribution by placing the accompanying "button"
and a link to the accompanying "credits page" on the website's
main entry point. In cases where this placement of
attribution is not feasible, a separate arrangment must be
concluded with Digital Creations. Those using the software
for purposes other than web sites must provide a corresponding
attribution in locations that include a copyright using a
manner best suited to the application environment.
This software consists of contributions made by Digital
Creations and many individuals on behalf of Digital Creations.
Specific attributions are listed in the accompanying credits
file.
****************************************************************************/
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.4 1998/07/27 13:09:58 jim Exp $" "\n$Id: Record.c,v 1.5 1998/12/04 20:15:24 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -512,7 +586,7 @@ void ...@@ -512,7 +586,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +625,9 @@ initRecord() ...@@ -551,6 +625,9 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.5 1998/12/04 20:15:24 jim
Detabification and new copyright.
Revision 1.4 1998/07/27 13:09:58 jim Revision 1.4 1998/07/27 13:09:58 jim
Changed _p___reinit__ to _p_deactivate. Changed _p___reinit__ to _p_deactivate.
......
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1998 Digital Creations, Inc., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''short description __doc__='''short description
$Id: Permission.py,v 1.2 1998/05/11 14:58:28 jim Exp $''' $Id: Permission.py,v 1.3 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
from Globals import HTMLFile, MessageDialog from Globals import HTMLFile, MessageDialog
from string import join, strip, split, find from string import join, strip, split, find
...@@ -112,15 +186,3 @@ class Permission: ...@@ -112,15 +186,3 @@ class Permission:
def __len__(self): return 1 def __len__(self): return 1
def __str__(self): return self.name def __str__(self): return self.name
##############################################################################
#
# $Log: Permission.py,v $
# Revision 1.2 1998/05/11 14:58:28 jim
# Added some machinery to fix bugs in reseting old permission settings.
#
# Revision 1.1 1998/05/08 14:45:20 jim
# new permission machinery
#
#
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1998 Digital Creations, Inc., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Objects that implement Permission-based roles. __doc__='''Objects that implement Permission-based roles.
$Id: PermissionRole.py,v 1.1 1998/05/08 14:45:20 jim Exp $''' $Id: PermissionRole.py,v 1.2 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
import sys import sys
...@@ -132,13 +206,3 @@ def main(): ...@@ -132,13 +206,3 @@ def main():
print a.b.q.z.__roles__ print a.b.q.z.__roles__
print a.b.c.q.z.__roles__ print a.b.c.q.z.__roles__
print print
if __name__ == "__main__": main()
##############################################################################
#
# $Log: PermissionRole.py,v $
# Revision 1.1 1998/05/08 14:45:20 jim
# new permission machinery
#
#
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Access control support""" """Access control support"""
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[11:-2]
from Globals import HTMLFile, MessageDialog from Globals import HTMLFile, MessageDialog
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.62 $'[11:-2] __version__='$Revision: 1.63 $'[11:-2]
import Globals, App.Undo, socket, regex import Globals, App.Undo, socket, regex
from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
__doc__="""System management components""" __doc__="""System management components"""
__version__='$Revision: 1.36 $'[11:-2] __version__='$Revision: 1.37 $'[11:-2]
import sys,os,time,string,Globals, Acquisition import sys,os,time,string,Globals, Acquisition
......
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1997 Digital Creations, L.C., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Cache management support __doc__='''Cache management support
$Id: CacheManager.py,v 1.8 1998/11/10 14:55:53 brian Exp $''' $Id: CacheManager.py,v 1.9 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
import Globals, time, sys import Globals, time, sys
...@@ -107,36 +181,3 @@ class CacheManager: ...@@ -107,36 +181,3 @@ class CacheManager:
'references': db.objectReferencesIn(oid), 'references': db.objectReferencesIn(oid),
}) })
return detail return detail
##############################################################################
#
# $Log: CacheManager.py,v $
# Revision 1.8 1998/11/10 14:55:53 brian
# Fixed typo in cache manager
#
# Revision 1.7 1998/08/03 13:43:00 jim
# - New folderish control panel that separates database and
# product management into separate interfaces.
#
# Revision 1.6 1998/03/24 16:39:11 jim
# Changed to give more likely database size.
#
# Revision 1.5 1998/02/05 15:20:21 jim
# Lowered cache size.
#
# Revision 1.4 1997/12/18 16:45:29 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.3 1997/11/19 20:11:48 jim
# Fixed bugs in check for working in a session.
#
# Revision 1.2 1997/11/07 17:06:02 jim
# added session checks.
#
# Revision 1.1 1997/09/19 15:55:52 jim
# *** empty log message ***
#
# Revision 1.1 1997/06/30 15:25:37 jim
# *** empty log message ***
#
#
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Common HTML dialog boxes """Common HTML dialog boxes
...@@ -19,7 +103,7 @@ ...@@ -19,7 +103,7 @@
target='_top') target='_top')
</PRE>""" </PRE>"""
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
from Globals import HTML from Globals import HTML
......
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1998 Digital Creations, Inc., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Standard routines for handling Principia Extensions __doc__='''Standard routines for handling Principia Extensions
Principia extensions currently include external methods and pluggable brains. Principia extensions currently include external methods and pluggable brains.
$Id: Extensions.py,v 1.3 1998/12/03 15:29:20 jim Exp $''' $Id: Extensions.py,v 1.4 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
from string import find from string import find
import os, zlib, rotor import os, zlib, rotor
...@@ -93,18 +167,3 @@ def getBrain(module, class_name, reload=0): ...@@ -93,18 +167,3 @@ def getBrain(module, class_name, reload=0):
'%s, is not a class' % class_name) '%s, is not a class' % class_name)
return c return c
##############################################################################
#
# $Log: Extensions.py,v $
# Revision 1.3 1998/12/03 15:29:20 jim
# rearranged SOFTWARE_HOME and INSTANCE_HOME
#
# Revision 1.2 1998/09/16 16:52:42 jim
# Improved error reporting.
#
# Revision 1.1 1998/08/03 13:43:26 jim
# new folderish control panel and product management
#
#
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1998 Digital Creations, Inc., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Principia Factories __doc__='''Principia Factories
$Id: Factory.py,v 1.3 1998/09/08 18:28:39 jim Exp $''' $Id: Factory.py,v 1.4 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
import OFS.SimpleItem, Acquisition, Globals import OFS.SimpleItem, Acquisition, Globals
...@@ -67,17 +141,3 @@ class Factory(OFS.SimpleItem.Item, Acquisition.Implicit): ...@@ -67,17 +141,3 @@ class Factory(OFS.SimpleItem.Item, Acquisition.Implicit):
def index_html(self, REQUEST): def index_html(self, REQUEST):
" " " "
return getattr(self, self.initial)(self.aq_parent, REQUEST) return getattr(self, self.initial)(self.aq_parent, REQUEST)
##############################################################################
#
# $Log: Factory.py,v $
# Revision 1.3 1998/09/08 18:28:39 jim
# Added manage_edit.
#
# Revision 1.2 1998/08/14 16:48:52 brian
# Updated copy support in leverish things
#
# Revision 1.1 1998/08/03 13:43:27 jim
# new folderish control panel and product management
#
#
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
# Implement the manage_addProduct method of object managers # Implement the manage_addProduct method of object managers
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Standard management interface support """Standard management interface support
$Id: Management.py,v 1.13 1998/12/03 21:02:27 jim Exp $""" $Id: Management.py,v 1.14 1998/12/04 20:15:25 jim Exp $"""
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
import sys, Globals import sys, Globals
from Dialogs import MessageDialog from Dialogs import MessageDialog
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Principia Product Objects """Principia Product Objects
""" """
# The new Product model: # The new Product model:
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
# Product registry and new product factory model. There will be a new # Product registry and new product factory model. There will be a new
# mechanism for defining actions for meta types. If an action is of # mechanism for defining actions for meta types. If an action is of
......
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''short description __doc__='''short description
$Id: Undo.py,v 1.9 1998/05/14 23:21:38 jim Exp $''' $Id: Undo.py,v 1.10 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
import Globals import Globals
from DateTime import DateTime from DateTime import DateTime
...@@ -112,37 +186,3 @@ class UndoSupport: ...@@ -112,37 +186,3 @@ class UndoSupport:
return '' return ''
Globals.default__class_init__(UndoSupport) Globals.default__class_init__(UndoSupport)
##############################################################################
#
# $Log: Undo.py,v $
# Revision 1.9 1998/05/14 23:21:38 jim
# Added machinery to avoid undoing transaction that started before the last pack.
#
# Revision 1.8 1998/01/12 17:58:39 jim
# Additional changes to support supplying batch size as a parameter.
#
# Revision 1.7 1998/01/12 16:50:32 jim
# Made some changes to enhance batch processing.
# Batch size is also now a parameter.
#
# Revision 1.6 1998/01/09 21:32:22 brian
# Added __class_init__
#
# Revision 1.5 1997/12/18 16:45:30 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.4 1997/11/07 17:06:28 jim
# Added session support.
#
# Revision 1.3 1997/10/23 17:43:27 jim
# Added fix to cover certain unusual situations.
#
# Revision 1.2 1997/09/25 21:03:50 brian
# Fixed bug
#
# Revision 1.1 1997/09/23 00:08:43 jim
# *** empty log message ***
#
#
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
#!/bin/env python
############################################################################## ##############################################################################
# #
# Copyright # Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Simple module for writing tar files __doc__='''Simple module for writing tar files
$Id: tar.py,v 1.1 1998/08/03 13:43:28 jim Exp $''' $Id: tar.py,v 1.2 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
import sys, time, zlib import sys, time, zlib
try: try:
...@@ -134,12 +208,3 @@ class gzFile: ...@@ -134,12 +208,3 @@ class gzFile:
append(pack("<i", self._crc)) append(pack("<i", self._crc))
append(pack("<i", self._l)) append(pack("<i", self._l))
return join(r,'') return join(r,'')
##############################################################################
#
# $Log: tar.py,v $
# Revision 1.1 1998/08/03 13:43:28 jim
# new folderish control panel and product management
#
#
# Copyright ##############################################################################
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Zope Public License (ZPL) Version 0.9.4
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # ---------------------------------------
# rights reserved. Copyright in this software is owned by DCLC,
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Copyright (c) Digital Creations. All rights reserved.
# #
# Trademarks # Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # 1. Redistributions in source code must retain the above
# All other trademarks are owned by their respective companies. # 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.
# #
# No Warranty # 3. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# The software is provided "as is" without warranty of any kind, # 4. All advertising materials, documentation, or technical papers
# either express or implied, including, but not limited to, the # mentioning features derived from or use of this software must
# implied warranties of merchantability, fitness for a particular # display the following acknowledgement:
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Limitation Of Liability # 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
# #
# In no event will DCLC be liable for direct, indirect, special, # 6. Redistributions of any form whatsoever must retain the
# incidental, economic, cover, or consequential damages arising # following acknowledgment:
# out of the use of or inability to use this software even if #
# advised of the possibility of such damages. Some states do not # "This product includes software developed by Digital
# allow the exclusion or limitation of implied warranties or # Creations for use in the Z Object Publishing Environment
# limitation of liability for incidental or consequential damages, # (http://www.zope.org/)."
# so the above limitation or exclusion may not apply to you. #
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.16 $'[11:-2] __version__='$Revision: 1.17 $'[11:-2]
import sys,os,regex,DateTimeZone import sys,os,regex,DateTimeZone
...@@ -1243,11 +1283,3 @@ class DateTime: ...@@ -1243,11 +1283,3 @@ class DateTime:
def Timezones(): def Timezones():
"""Return the list of recognized timezone names""" """Return the list of recognized timezone names"""
return _cache._zlst return _cache._zlst
"""Build timezone info into a compiled .pyc file"""
import os,struct
f_zones=['Brazil/Acre','Brazil/DeNoronha','Brazil/East','Brazil/West',
'Canada/Atlantic','Canada/Central','Canada/Eastern',
'Canada/East-Saskatchewan','Canada/Mountain','Canada/Newfoundland',
'Canada/Pacific','Canada/Yukon',
'Chile/Continental','Chile/EasterIsland',
'Cuba','Egypt','GB-Eire',
'GMT','GMT+1','GMT+2','GMT+3','GMT+4','GMT+5','GMT+6','GMT+7',
'GMT+8','GMT+9','GMT+10','GMT+11','GMT+12','GMT+13','GMT-1',
'GMT-2','GMT-3','GMT-4','GMT-5','GMT-6','GMT-7','GMT-8','GMT-9',
'GMT-10','GMT-11','GMT-12','Greenwich','Hongkong','Iceland','Iran',
'Israel','Jamaica','Japan',
'Mexico/BajaNorte','Mexico/BajaSur','Mexico/General',
'Poland','Singapore','Turkey','Universal',
'US/Alaska','US/Aleutian','US/Arizona','US/Central','US/Eastern',
'US/East-Indiana','US/Hawaii','US/Indiana-Starke','US/Michigan',
'US/Mountain','US/Pacific','US/Samoa']
class UnpackerLite:
# Tastes great, less filling ;)
def __init__(self,data): self.reset(data)
def reset(self,data): self.__buf,self.__pos=data,0
if (struct.pack('l',1)=='\0\0\0\1'):
def unpack_int(self):
i = self.__pos
self.__pos = j = i+4
data = self.__buf[i:j]
d=struct.unpack('l',self.__buf[i:j])[0]
if d >= 0x80000000L: return int(d-0x100000000L)
return int(d)
else:
def unpack_int(self):
i = self.__pos
self.__pos = j = i+4
d=self.__buf[i:j]
x=long(ord(d[0]))<<24 | ord(d[1])<<16 | ord(d[2])<<8 | ord(d[3])
if x >= 0x80000000L: return int(x-0x100000000L)
return int(x)
db_name='DateTimeZone'
zonedir='zones/'
def main():
print 'Building timezone data...'
zdata={}
try: db=open('%s.py' % db_name,'w')
except: raise 'IOError','Could not create %s.py' % db_name
for f in f_zones:
name,ttrans,tindex,ttinfo,az=f,[],'',[],''
_f=open('%s%s' % (zonedir,f),'rb')
data=_f.read()
_f.close()
up=UnpackerLite(data[32:44])
tzh_timecnt,tzh_typecnt,tzh_charcnt= \
up.unpack_int(),up.unpack_int(),up.unpack_int()
up.reset(data[44:44+4*tzh_timecnt])
p=44+4*tzh_timecnt
for i in range(tzh_timecnt): ttrans.append(up.unpack_int())
tindex=data[p:p+tzh_timecnt]
p=p+tzh_timecnt
d=data[p:p+6*tzh_typecnt]
for i in range(tzh_typecnt):
up.reset(d[6*i:6*i+4])
ttinfo.append(up.unpack_int(),ord(d[6*i+4]),ord(d[6*i+5]))
p=p+6*tzh_typecnt
az=data[p:p+tzh_charcnt]
zdata[name]=(name,tzh_timecnt,tzh_typecnt,ttrans,tindex,ttinfo,az)
db.write('_data=%s' % str(zdata))
db.close()
print 'Creating %s.pyc...' % db_name
__import__(db_name)
print '%s.pyc created successfully.' % db_name
if __name__=='__main__': main()
This diff is collapsed.
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
from DateTime import DateTime from DateTime import DateTime
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"""HTML formated DocumentTemplates """HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.13 1998/09/14 22:03:31 jim Exp $""" $Id: DT_HTML.py,v 1.14 1998/12/04 20:15:27 jim Exp $"""
from DT_String import String, FileMixin from DT_String import String, FileMixin
import DT_String, regex import DT_String, regex
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Conditional insertion __doc__='''Conditional insertion
Conditional insertion is performed using 'if' and 'else' Conditional insertion is performed using 'if' and 'else'
...@@ -117,8 +147,8 @@ __doc__='''Conditional insertion ...@@ -117,8 +147,8 @@ __doc__='''Conditional insertion
variable is not reevaluated. variable is not reevaluated.
''' '''
__rcs_id__='$Id: DT_If.py,v 1.14 1998/09/14 22:03:31 jim Exp $' __rcs_id__='$Id: DT_If.py,v 1.15 1998/12/04 20:15:27 jim Exp $'
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
from DT_Util import ParseError, parse_params, name_param, str from DT_Util import ParseError, parse_params, name_param, str
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
'''Sequence insertion '''Sequence insertion
A sequence may be inserted using an 'in' command. The 'in' A sequence may be inserted using an 'in' command. The 'in'
...@@ -349,8 +379,8 @@ ...@@ -349,8 +379,8 @@
''' #' ''' #'
__rcs_id__='$Id: DT_In.py,v 1.31 1998/10/21 14:58:12 jim Exp $' __rcs_id__='$Id: DT_In.py,v 1.32 1998/12/04 20:15:27 jim Exp $'
__version__='$Revision: 1.31 $'[11:-2] __version__='$Revision: 1.32 $'[11:-2]
from DT_Util import ParseError, parse_params, name_param, str from DT_Util import ParseError, parse_params, name_param, str
from DT_Util import render_blocks, InstanceDict from DT_Util import render_blocks, InstanceDict
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Sequence variables support __doc__='''Sequence variables support
$Id: DT_InSV.py,v 1.8 1998/09/14 22:03:32 jim Exp $''' $Id: DT_InSV.py,v 1.9 1998/12/04 20:15:28 jim Exp $'''
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
from string import lower, rfind from string import lower, rfind
from math import sqrt from math import sqrt
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
'''Raising exceptions '''Raising exceptions
Errors can be raised from DTML using the 'raise' tag. Errors can be raised from DTML using the 'raise' tag.
...@@ -65,8 +95,8 @@ ...@@ -65,8 +95,8 @@
<!--#/if--> <!--#/if-->
''' '''
__rcs_id__='$Id: DT_Raise.py,v 1.9 1998/09/14 22:03:32 jim Exp $' __rcs_id__='$Id: DT_Raise.py,v 1.10 1998/12/04 20:15:28 jim Exp $'
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from DT_Util import parse_params, name_param, render_blocks, str from DT_Util import parse_params, name_param, render_blocks, str
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"$Id: DT_String.py,v 1.19 1998/09/14 22:03:32 jim Exp $" "$Id: DT_String.py,v 1.20 1998/12/04 20:15:28 jim Exp $"
from string import split, strip from string import split, strip
import regex, ts_regex import regex, ts_regex
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Machinery to support through-the-web editing __doc__='''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.7 1998/09/14 22:03:33 jim Exp $''' $Id: DT_UI.py,v 1.8 1998/12/04 20:15:28 jim Exp $'''
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from DT_HTML import HTML from DT_HTML import HTML
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
'''$Id: DT_Util.py,v 1.48 1998/11/23 15:20:40 jim Exp $''' '''$Id: DT_Util.py,v 1.49 1998/12/04 20:15:28 jim Exp $'''
__version__='$Revision: 1.48 $'[11:-2] __version__='$Revision: 1.49 $'[11:-2]
import regex, string, math, os import regex, string, math, os
from string import strip, join, atoi, lower, split, find from string import strip, join, atoi, lower, split, find
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Variable insertion parameters __doc__='''Variable insertion parameters
...@@ -164,8 +195,8 @@ Evaluating expressions without rendering results ...@@ -164,8 +195,8 @@ Evaluating expressions without rendering results
''' # ' ''' # '
__rcs_id__='$Id: DT_Var.py,v 1.26 1998/09/15 14:14:45 jim Exp $' __rcs_id__='$Id: DT_Var.py,v 1.27 1998/12/04 20:15:28 jim Exp $'
__version__='$Revision: 1.26 $'[11:-2] __version__='$Revision: 1.27 $'[11:-2]
from DT_Util import parse_params, name_param, html_quote, str from DT_Util import parse_params, name_param, html_quote, str
import regex, string, sys, regex import regex, string, sys, regex
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
'''Nested namespace access '''Nested namespace access
The 'with' tag is used to introduce nested namespaces. The 'with' tag is used to introduce nested namespaces.
...@@ -75,8 +105,8 @@ ...@@ -75,8 +105,8 @@
''' '''
__rcs_id__='$Id: DT_With.py,v 1.6 1998/09/14 22:03:33 jim Exp $' __rcs_id__='$Id: DT_With.py,v 1.7 1998/12/04 20:15:28 jim Exp $'
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
from DT_Util import parse_params, name_param, InstanceDict, render_blocks, str from DT_Util import parse_params, name_param, InstanceDict, render_blocks, str
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"""Document Template Tests """Document Template Tests
""" """
__rcs_id__='$Id: DTtest.py,v 1.9 1998/09/14 22:03:34 jim Exp $' __rcs_id__='$Id: DTtest.py,v 1.10 1998/12/04 20:15:28 jim Exp $'
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from DocumentTemplate import * from DocumentTemplate import *
import sys import sys
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''short description __doc__='''short description
$Id: DTtestExpr.py,v 1.4 1998/09/14 22:19:56 jim Exp $''' $Id: DTtestExpr.py,v 1.5 1998/12/04 20:15:28 jim Exp $'''
__version__='$Revision: 1.4 $'[11:-2] __version__='$Revision: 1.5 $'[11:-2]
from DocumentTemplate import * from DocumentTemplate import *
import sys import sys
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
from DocumentTemplate import HTML, HTMLFile, String, File from DocumentTemplate import HTML, HTMLFile, String, File
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
'''Document templates with fill-in fields '''Document templates with fill-in fields
...@@ -163,7 +194,7 @@ Document Templates may be created 4 ways: ...@@ -163,7 +194,7 @@ Document Templates may be created 4 ways:
''' '''
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
ParseError='Document Template Parse Error' ParseError='Document Template Parse Error'
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"""Very Safe Python Expressions """Very Safe Python Expressions
""" """
__rcs_id__='$Id: VSEval.py,v 1.19 1998/09/14 22:03:34 jim Exp $' __rcs_id__='$Id: VSEval.py,v 1.20 1998/12/04 20:15:28 jim Exp $'
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
from string import translate from string import translate
import string import string
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
__doc__='''Package wrapper for Document Template __doc__='''Package wrapper for Document Template
...@@ -56,8 +87,8 @@ __doc__='''Package wrapper for Document Template ...@@ -56,8 +87,8 @@ __doc__='''Package wrapper for Document Template
This wrapper allows the (now many) document template modules to be This wrapper allows the (now many) document template modules to be
segregated in a separate package. segregated in a separate package.
$Id: __init__.py,v 1.10 1998/09/14 20:48:43 jim Exp $''' $Id: __init__.py,v 1.11 1998/12/04 20:15:28 jim Exp $'''
__version__='$Revision: 1.10 $'[11:-2] __version__='$Revision: 1.11 $'[11:-2]
from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
from DocumentTemplate import html_quote from DocumentTemplate import html_quote
......
/****************************************************************** /*****************************************************************************
Copyright
Copyright 1997 Digital Creations, L.L.C., 910 Princess Anne
Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
rights reserved.
******************************************************************/
Zope Public License (ZPL) Version 0.9.4
---------------------------------------
Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
website, must either comply with the terms described below
under "Attribution" or alternatively secure a separate
license from Digital Creations.
4. All advertising materials, documentation, or technical papers
mentioning features derived from or use of this software must
display the following acknowledgement:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
5. Names associated with Zope or Digital Creations must not be
used to endorse or promote products derived from this
software without prior written permission from Digital
Creations.
6. Redistributions of any form whatsoever must retain the
following acknowledgment:
"This product includes software developed by Digital
Creations for use in the Z Object Publishing Environment
(http://www.zope.org/)."
7. Modifications are encouraged but must be packaged separately
as patches to official Zope releases. Distributions that do
not clearly separate the patches from the original work must
be clearly labeled as unofficial distributions.
Disclaimer
THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
Attribution
Individuals or organizations using this software as a web site
must provide attribution by placing the accompanying "button"
and a link to the accompanying "credits page" on the website's
main entry point. In cases where this placement of
attribution is not feasible, a separate arrangment must be
concluded with Digital Creations. Those using the software
for purposes other than web sites must provide a corresponding
attribution in locations that include a copyright using a
manner best suited to the application environment.
This software consists of contributions made by Digital
Creations and many individuals on behalf of Digital Creations.
Specific attributions are listed in the accompanying credits
file.
****************************************************************************/
static char cDocumentTemplate_module_documentation[] = static char cDocumentTemplate_module_documentation[] =
"" ""
"\n$Id: cDocumentTemplate.c,v 1.17 1998/05/20 20:11:20 jim Exp $" "\n$Id: cDocumentTemplate.c,v 1.18 1998/12/04 20:15:28 jim Exp $"
; ;
#include "ExtensionClass.h" #include "ExtensionClass.h"
...@@ -838,7 +912,7 @@ void ...@@ -838,7 +912,7 @@ void
initcDocumentTemplate() initcDocumentTemplate()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.17 $"; char *rev="$Revision: 1.18 $";
PURE_MIXIN_CLASS(cDocument, PURE_MIXIN_CLASS(cDocument,
"Base class for documents that adds fast validation method", "Base class for documents that adds fast validation method",
Document_methods); Document_methods);
...@@ -880,117 +954,6 @@ initcDocumentTemplate() ...@@ -880,117 +954,6 @@ initcDocumentTemplate()
PyDict_SetItemString(d, "__version__", PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2)); PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
#include "dcprotect.h"
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("can't initialize module cDocumentTemplate"); Py_FatalError("can't initialize module cDocumentTemplate");
} }
/*****************************************************************************
Revision Log:
$Log: cDocumentTemplate.c,v $
Revision 1.17 1998/05/20 20:11:20 jim
Added check for wrapped objects when performing inst is parent test in
validate.
Revision 1.16 1998/05/20 17:18:34 jim
Simplified validate method by getting rid of attempt to acquire roles.
Also fixed bug in handling proxy roles.
Revision 1.15 1998/05/07 22:05:56 jim
Added protocol for hasRole to signal that an error should be raised
by returning None, rather than 0.
Revision 1.14 1998/04/14 11:44:05 jim
Fixed bug in validate.
Revision 1.13 1998/04/02 22:35:45 jim
Fixed stupid bug that causes validation of non-acquired instance
attributes to fail.
Revision 1.12 1998/04/02 21:17:41 jim
Fixed (old) memory leak for DocumentTemplates wo validate.
Revision 1.11 1998/04/02 17:37:40 jim
Major redesign of block rendering. The code inside a block tag is
compiled as a template but only the templates blocks are saved, and
later rendered directly with render_blocks.
Added with tag.
Also, for the HTML syntax, we now allow spaces after # and after end
or '/'. So, the tags::
<!--#
with spam
-->
and::
<!--#
end with
-->
are valid.
Revision 1.10 1998/03/26 21:55:40 jim
Fixed error propigation from aq_acquire in InstanceDict.
Revision 1.9 1997/12/18 17:48:46 jim
added dcprotect
Revision 1.8 1997/11/19 15:42:47 jim
added _ prefix to push and pop methods to make them private
Revision 1.7 1997/11/07 18:51:47 jim
Fixed bug in new call logic.
Revision 1.6 1997/11/07 17:09:40 jim
Changed so exception is raised if a callable object raises an
exception when called and the exception type and value are not
AttributeError and '__call__'.
Revision 1.5 1997/10/29 16:58:53 jim
Changed name of get to getitem.
Revision 1.4 1997/10/28 21:57:31 jim
Changed to use aq_acquire.
Revision 1.3 1997/10/28 21:52:58 jim
Fixed bug in get.
Added latest validation rules.
Revision 1.2 1997/10/27 17:43:28 jim
Added some new experimental validation machinery.
This is, still a work in progress.
Added level attribute used in preventing excessive recursion.
Added get method.
Revision 1.1 1997/08/27 18:55:47 jim
initial
Revision 1.4 1997/08/07 12:26:52 jim
- InstanceDicts no longer try to evaluate results. This is defered to
the TemplateDict.
- Fixed bug in the way TemplateDicts were evaluating
document templates.
- TemplateDicts now use PyCallable_Check before trying to call
returned values. This should speed common cases.
Revision 1.3 1997/08/05 21:56:20 jim
Changed the way InstanceDicts call template attributes to avoid
problem with instance attributes overriding kw arguments.
Revision 1.2 1997/04/11 19:53:36 jim
Forgot NULL return on error in render_blocks.
Revision 1.1 1997/04/09 22:24:23 jim
*** empty log message ***
$Revision 1.1 1997/02/24 23:25:42 jim
$initial
$
*****************************************************************************/
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"$Id: gparse.py,v 1.7 1998/09/14 22:19:56 jim Exp $" "$Id: gparse.py,v 1.8 1998/12/04 20:15:29 jim Exp $"
import sys, parser, symbol, token import sys, parser, symbol, token
from symbol import test, suite, argument, arith_expr, shift_expr from symbol import test, suite, argument, arith_expr, shift_expr
......
############################################################################## ##############################################################################
# #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. # Zope Public License (ZPL) Version 0.9.4
# All rights reserved. # ---------------------------------------
# #
# Redistribution and use in source and binary forms, with or without # Copyright (c) Digital Creations. All rights reserved.
# modification, are permitted provided that the following conditions are
# met:
# #
# o Redistributions of source code must retain the above copyright # Redistribution and use in source and binary forms, with or
# notice, this list of conditions, and the disclaimer that follows. # without modification, are permitted provided that the following
# conditions are met:
# #
# o Redistributions in binary form must reproduce the above copyright # 1. Redistributions in source code must retain the above
# notice, this list of conditions, and the following disclaimer in # copyright notice, this list of conditions, and the following
# the documentation and/or other materials provided with the # disclaimer.
# distribution.
# #
# o All advertising materials mentioning features or use of this # 2. Redistributions in binary form must reproduce the above
# software must display the following acknowledgement: # copyright notice, this list of conditions, and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
# #
# This product includes software developed by Digital Creations # 3. Any use, including use of the Zope software to operate a
# and its contributors. # website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
# #
# o Neither the name of Digital Creations nor the names of its # 4. All advertising materials, documentation, or technical papers
# contributors may be used to endorse or promote products derived # mentioning features derived from or use of this software must
# from this software without specific prior written permission. # display the following acknowledgement:
# #
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS* # 5. Names associated with Zope or Digital Creations must not be
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # used to endorse or promote products derived from this
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # software without prior written permission from Digital
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL # Creations.
# CREATIONS OR 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.
# #
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
# #
# If you have questions regarding this software, contact: # "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
# #
# Digital Creations, L.C. # 7. Modifications are encouraged but must be packaged separately
# 910 Princess Ann Street # as patches to official Zope releases. Distributions that do
# Fredericksburge, Virginia 22401 # not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
# #
# info@digicool.com # Disclaimer
# #
# (540) 371-6909 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
# #
############################################################################## ##############################################################################
"$Id: gparse_test.py,v 1.1 1998/09/14 21:10:07 jim Exp $" "$Id: gparse_test.py,v 1.2 1998/12/04 20:15:29 jim Exp $"
import sys, parser, symbol, token import sys, parser, symbol, token
from symbol import * from symbol import *
from token import * from token import *
......
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.4
# ---------------------------------------
#
# Copyright (c) Digital Creations. 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 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. Any use, including use of the Zope software to operate a
# website, must either comply with the terms described below
# under "Attribution" or alternatively secure a separate
# license from Digital Creations.
#
# 4. All advertising materials, documentation, or technical papers
# mentioning features derived from or use of this software must
# display the following acknowledgement:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 5. Names associated with Zope or Digital Creations must not be
# used to endorse or promote products derived from this
# software without prior written permission from Digital
# Creations.
#
# 6. Redistributions of any form whatsoever must retain the
# following acknowledgment:
#
# "This product includes software developed by Digital
# Creations for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# 7. Modifications are encouraged but must be packaged separately
# as patches to official Zope releases. Distributions that do
# not clearly separate the patches from the original work must
# be clearly labeled as unofficial distributions.
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``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 DIGITAL CREATIONS 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.
#
# Attribution
#
# Individuals or organizations using this software as a web site
# must provide attribution by placing the accompanying "button"
# and a link to the accompanying "credits page" on the website's
# main entry point. In cases where this placement of
# attribution is not feasible, a separate arrangment must be
# concluded with Digital Creations. Those using the software
# for purposes other than web sites must provide a corresponding
# attribution in locations that include a copyright using a
# manner best suited to the application environment.
#
# This software consists of contributions made by Digital
# Creations and many individuals on behalf of Digital Creations.
# Specific attributions are listed in the accompanying credits
# file.
#
##############################################################################
"""Global definitions""" """Global definitions"""
__version__='$Revision: 1.27 $'[11:-2] __version__='$Revision: 1.28 $'[11:-2]
import sys, os import sys, os
from DateTime import DateTime from DateTime import DateTime
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment