Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Conform to repository policy
Browse files Browse the repository at this point in the history
  • Loading branch information
menesis committed Dec 13, 2010
1 parent d3fa6b3 commit a49bda4
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 32 deletions.
1 change: 1 addition & 0 deletions COPYRIGHT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Zope Foundation and Contributors
44 changes: 44 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Zope Public License (ZPL) Version 2.1

A copyright notice accompanies this license document that identifies the
copyright holders.

This license has been certified as open source. It has also been designated as
GPL compatible by the Free Software Foundation (FSF).

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions in source code must retain the accompanying copyright
notice, this list of conditions, and the following disclaimer.

2. Redistributions in binary form must reproduce the accompanying copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Names of the copyright holders must not be used to endorse or promote
products derived from this software without prior written permission from the
copyright holders.

4. The right to distribute this software or to use it for any purpose does not
give you the right to use Servicemarks (sm) or Trademarks (tm) of the
copyright
holders. Use of them is covered by separate agreement with the copyright
holders.

5. If any files are modified, you must cause the modified files to carry
prominent notices stating that you changed the files and the date of any
change.

Disclaimer

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``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 THE COPYRIGHT HOLDERS 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.
4 changes: 1 addition & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors.
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -16,8 +16,6 @@
Simply run this script in a directory containing a buildout.cfg.
The script accepts buildout command-line options, so you can
use the -c option to specify an alternate configuration file.
$Id$
"""

import os, shutil, sys, tempfile, urllib2
Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors.
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -12,8 +12,6 @@
#
##############################################################################
"""Setup for zope.app.zopeappgenerations package
$Id$
"""
import os
from setuptools import setup, find_packages
Expand All @@ -23,7 +21,7 @@ def read(*rnames):

setup(name='zope.app.zopeappgenerations',
version = '3.5.1dev',
author='Zope Corporation and Contributors',
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.org',
description='Zope Application ZODB Update Generations',
long_description=(
Expand Down Expand Up @@ -51,7 +49,7 @@ def read(*rnames):
'zope.annotation',
'zope.app.authentication',
'zope.app.component',
'zope.app.generations >= 3.5.0',
'zope.app.generations >= 3.5',
'zope.copypastemove',
'zope.dublincore',
],
Expand Down
4 changes: 1 addition & 3 deletions src/zope/app/zopeappgenerations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -12,8 +12,6 @@
#
##############################################################################
"""Zope Application Server Generations
$Id$
"""
__docformat__ = "reStructuredText"

Expand Down
4 changes: 1 addition & 3 deletions src/zope/app/zopeappgenerations/evolve2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -12,8 +12,6 @@
#
##############################################################################
"""Evolve the ZODB from Zope 3.1 to a Zope 3.2 compatible format.
$Id$
"""
__docformat__ = "reStructuredText"

Expand Down
12 changes: 4 additions & 8 deletions src/zope/app/zopeappgenerations/evolve3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -14,18 +14,14 @@
"""Evolve existing PAU group folders.
They should be used as contained plugins rather than registered plugins.
$Id$
"""
__docformat__ = "reStructuredText"

from zope import component

from zope.app.component.interfaces import ISite

import zope.app.authentication.interfaces
from zope.app.authentication import groupfolder
from zope.app.component.interfaces import ISite
from zope.app.generations.utility import findObjectsProviding, getRootFolder
from zope.component import getUtilitiesFor
from zope.copypastemove.interfaces import IObjectMover

generation = 3
Expand All @@ -47,7 +43,7 @@ def evolve(context):
sm = site.getSiteManager()
for pau in findObjectsProviding(
sm, zope.app.authentication.interfaces.IPluggableAuthentication):
for nm, util in component.getUtilitiesFor(
for nm, util in getUtilitiesFor(
zope.app.authentication.interfaces.IAuthenticatorPlugin,
context=pau):
if groupfolder.IGroupFolder.providedBy(util):
Expand Down
7 changes: 2 additions & 5 deletions src/zope/app/zopeappgenerations/evolve4.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -12,14 +12,11 @@
#
##############################################################################
"""Evolve local site managers
$Id$
"""
__docformat__ = "reStructuredText"

from zope.app.zopeappgenerations import getRootFolder
from zope.app.generations.utility import getRootFolder

def evolve(context):
getRootFolder(context).getSiteManager()._evolve_to_generation_4()


7 changes: 2 additions & 5 deletions src/zope/app/zopeappgenerations/evolve5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors.
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Expand All @@ -12,16 +12,13 @@
#
##############################################################################
"""Evolve moved Zope Dublin Core Annotatable data
$Id$
"""
__docformat__ = "reStructuredText"
from zope.annotation.interfaces import IAnnotatable, IAnnotations
from zope.dublincore.interfaces import IWriteZopeDublinCore
from zope.dublincore.annotatableadapter import ZDCAnnotatableAdapter
from zope.dublincore.annotatableadapter import DCkey
from zope.app.generations.utility import findObjectsProviding
from zope.app.zopeappgenerations import getRootFolder
from zope.app.generations.utility import findObjectsProviding, getRootFolder

generation = 5

Expand Down

0 comments on commit a49bda4

Please sign in to comment.