[Checkins] SVN: zope.paste/trunk/ Moved to GitHub.
Stephen Richter
cvs-admin at zope.org
Mon Feb 25 17:10:54 UTC 2013
Log message for revision 129804:
Moved to GitHub.
Changed:
D zope.paste/trunk/CHANGES.txt
A zope.paste/trunk/MOVED_TO_GITHUB
D zope.paste/trunk/README.txt
D zope.paste/trunk/bootstrap.py
D zope.paste/trunk/buildout.cfg
D zope.paste/trunk/multiple.txt
D zope.paste/trunk/setup.py
D zope.paste/trunk/test-site.zcml
D zope.paste/trunk/test.ini
D zope.paste/trunk/zope/
-=-
Deleted: zope.paste/trunk/CHANGES.txt
===================================================================
--- zope.paste/trunk/CHANGES.txt 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/CHANGES.txt 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,53 +0,0 @@
-Change History
---------------
-
-0.5 (unreleased)
-~~~~~~~~~~~~~~~~
-
-- Nothing changed yet.
-
-
-0.4 (2012-08-21)
-~~~~~~~~~~~~~~~~
-
-- Add this changelog, reconstructed from svn logs and release dates on
- PyPI.
-
-- Support a 'features' config option in the PasteDeploy INI file, which
- can contain a space-separated list of feature names. These can be
- tested for in ZCML files with the <*directive*
- zcml:condition="have *featurename*"> syntax.
-
- Previously the only feature that could be enabled was 'devmode' and
- it had its own option. For backwards compatibility, ``devmode = on``
- adds a 'devmode' feature to the feature list.
-
-
-0.3 (2007-06-02)
-~~~~~~~~~~~~~~~~
-
-- Release as an egg with explicit dependencies for zope.app packages.
-
-- Buildoutify the source tree.
-
-
-0.2 (2007-05-29)
-~~~~~~~~~~~~~~~~
-
-- Extended documentation.
-
-- Added a real PasteDeploy application factory. This allows you to run
- Zope 3 on any WSGI capable server, without integration code.
-
-- Support for devmode.
-
-- Support multiple databases through a config file (specify db_definition
- instead of file_storage).
-
-- Accept filenames relative to the location of the PasteDeploy INI file.
-
-
-0.1 (2006-01-25)
-~~~~~~~~~~~~~~~~
-
-- Initial release.
Added: zope.paste/trunk/MOVED_TO_GITHUB
===================================================================
--- zope.paste/trunk/MOVED_TO_GITHUB (rev 0)
+++ zope.paste/trunk/MOVED_TO_GITHUB 2013-02-25 17:10:54 UTC (rev 129804)
@@ -0,0 +1 @@
+See https://github.com/zopefoundation/zope.paste
\ No newline at end of file
Deleted: zope.paste/trunk/README.txt
===================================================================
--- zope.paste/trunk/README.txt 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/README.txt 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,173 +0,0 @@
-zope.paste - Zope 3 and PasteDeploy
-===================================
-
-zope.paste allows you to
-
-* employ WSGI middlewares inside a Zope 3 application
-
-* deploy the Zope 3 application server on any WSGI-capable webserver
-
-using PasteDeploy_. These are two completely different modi operandi
-which only have in common that they are facilitate PasteDeploy_. Each
-is explained in detail below.
-
-.. _PasteDeploy: http://pythonpaste.org/deploy/
-
-
-WSGI middlewares inside Zope 3
-------------------------------
-
-zope.paste allows you to stack WSGI middlewares on top of Zope 3's
-publisher application without changing the way you configure Zope
-(``zope.conf``) or run it (``runzope``, ``zopectl``).
-
-Configuration is very simple. Assuming that you've already created a
-Zope 3 instance using the ``mkzopeinstance`` script, there are three
-steps that need to be performed:
-
-Installing and configuring zope.paste
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-zope.paste can be installed as an egg anywhere onto your
-``PYTHONPATH`` or simply dropped into your
-``<INSTANCE_HOME>/lib/python`` directory. Then you need to enable
-zope.paste's ZCML configuration by creating the file
-``<INSTANCE_HOME>/etc/package-includes/zope.paste-configure.zcml``
-with the following contents::
-
- <include package="zope.paste" />
-
-Configuring the server
-~~~~~~~~~~~~~~~~~~~~~~
-
-We create a ``<server>`` directive in
-``<INSTANCE_HOME>/etc/zope.conf`` to use zope.paste's server
-definition, ``Paste.Main``. That way the WSGI middlewares will be
-invoked when responses are served through this server::
-
- <server>
- type Paste.Main
- address 8081
- </server>
-
-Configuring the WSGI stack
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Now we configure a WSGI application using PasteDeploy_ syntax in
-``<INSTANCE_HOME>/etc/paste.ini``. Here's an example of how to
-configure the `Paste.Main` application to use the Zope 3 publisher as
-a WSGI application, therefore doing the exact same thing that the
-regular ``HTTP`` server definition would do::
-
- [app:Paste.Main]
- paste.app_factory = zope.paste.application:zope_publisher_app_factory
-
-That's not really interesting, though. PasteDeploy_ allows you to
-chain various WSGI entities together, which is where it gets
-interesting. There seems to be a distinction between 'apps' and
-'filters' (also referred to as 'middleware'). An example that might
-be of interest is applying a `XSLT` transformation to the output of
-the Zope 3 WSGI application.
-
-Happily enough, someone seems to have already created a WSGI filter
-for applying a `XSLT` stylesheet. You can find it at
-http://www.decafbad.com/2005/07/xmlwiki/lib/xmlwiki/xslfilter.py
-
-If you wanted to apply this WSGI filter to Zope 3, you would need
-three things:
-
-1. Put the ``xslfilter.py`` file somewhere in ``PYTHONPATH``.
- ``<INSTANCE>/lib/python`` is a good place.
-
-2. Add this snippet to the bottom of ``xslfilter.py``::
-
- def filter_factory(global_conf, **local_conf):
- def filter(app):
- return XSLFilter(app)
- return filter
-
-3. Change ``paste.ini`` file as follows::
-
- [pipeline:Paste.Main]
- pipeline = xslt main
-
- [app:main]
- paste.app_factory = zope.paste.application:zope_publisher_app_factory
-
- [filter:xslt]
- paste.filter_factory = xslfilter:filter_factory
-
- What this does is to define a *pipeline*. Learn more about this on
- the PasteDeploy_ website. Refer to the source of ``xslfilter.py``
- for information about how to pass a stylesheet to the filter.
-
-
-Deploying Zope 3 on an WSGI-capable webserver
----------------------------------------------
-
-zope.paste allows you to run Zope 3 on any WSGI-capable webserver
-software using PasteDeploy_. For this you will no longer need a Zope
-3 instance (though you can still have one), you won't configure Zope 3
-through ``zope.conf`` and won't start it using ``runzope`` or
-``zopectl``.
-
-Configuring the application
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-zope.paste provides a PasteDeploy_-compatible factory for Zope 3's
-WSGI publisher application and registers it in an entry point. We can
-therefore create a very simple Zope 3 application in a PasteDeploy_
-configuration file (e.g. ``paste.ini``)::
-
- [app:main]
- use = egg:zope.paste
- site_definition = /path/to/site.zcml
- file_storage = /path/to/Data.fs
- devmode = on
-
-In this case, ``/path/to/site.zcml`` refers to a ``site.zcml`` as
-known from a Zope 3 instance. You can, for example, put ``paste.ini``
-into an existing Zope 3 instance, next to ``site.zcml``.
-
-Configuring the ZODB database
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Instead of referring to a ZODB FileStorage using the ``file_storage``
-setting, you can also configure multiple or other ZODB database
-backends in a ZConfig-style configuration file (much like
-``zope.conf``), e.g. the following configures a ZEO client::
-
- <zodb>
- <zeoclient>
- server localhost:8100
- storage 1
- cache-size 20MB
- </zeoclient>
- </zodb>
-
-Refer to this file from ``paste.ini`` this way (and delete the
-``file_storage`` setting)::
-
- db_definition = db.conf
-
-Configuring the server
-~~~~~~~~~~~~~~~~~~~~~~
-
-In order to be able to use our Zope application, we only need to add a
-server definition. We can use the one that comes with Paste or
-PasteScript_, rather::
-
- [server:main]
- use = egg:PasteScript#wsgiutils
- host = 127.0.0.1
- port = 8080
-
-.. _PasteScript: http://pythonpaste.org/script/
-
-Now we can start the application using the ``paster`` command that
-comes with PasteScript_::
-
- $ paster serve paste.ini
-
-WSGI middlewares can be configured like described above or on the
-PasteDeploy_ website.
Deleted: zope.paste/trunk/bootstrap.py
===================================================================
--- zope.paste/trunk/bootstrap.py 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/bootstrap.py 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,266 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-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.
-"""
-
-import os, shutil, sys, tempfile, urllib, urllib2, subprocess
-from optparse import OptionParser
-
-if sys.platform == 'win32':
- def quote(c):
- if ' ' in c:
- return '"%s"' % c # work around spawn lamosity on windows
- else:
- return c
-else:
- quote = str
-
-# See zc.buildout.easy_install._has_broken_dash_S for motivation and comments.
-stdout, stderr = subprocess.Popen(
- [sys.executable, '-Sc',
- 'try:\n'
- ' import ConfigParser\n'
- 'except ImportError:\n'
- ' print 1\n'
- 'else:\n'
- ' print 0\n'],
- stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
-has_broken_dash_S = bool(int(stdout.strip()))
-
-# In order to be more robust in the face of system Pythons, we want to
-# run without site-packages loaded. This is somewhat tricky, in
-# particular because Python 2.6's distutils imports site, so starting
-# with the -S flag is not sufficient. However, we'll start with that:
-if not has_broken_dash_S and 'site' in sys.modules:
- # We will restart with python -S.
- args = sys.argv[:]
- args[0:0] = [sys.executable, '-S']
- args = map(quote, args)
- os.execv(sys.executable, args)
-# Now we are running with -S. We'll get the clean sys.path, import site
-# because distutils will do it later, and then reset the path and clean
-# out any namespace packages from site-packages that might have been
-# loaded by .pth files.
-clean_path = sys.path[:]
-import site # imported because of its side effects
-sys.path[:] = clean_path
-for k, v in sys.modules.items():
- if k in ('setuptools', 'pkg_resources') or (
- hasattr(v, '__path__') and
- len(v.__path__) == 1 and
- not os.path.exists(os.path.join(v.__path__[0], '__init__.py'))):
- # This is a namespace package. Remove it.
- sys.modules.pop(k)
-
-is_jython = sys.platform.startswith('java')
-
-setuptools_source = 'http://peak.telecommunity.com/dist/ez_setup.py'
-distribute_source = 'http://python-distribute.org/distribute_setup.py'
-
-
-# parsing arguments
-def normalize_to_url(option, opt_str, value, parser):
- if value:
- if '://' not in value: # It doesn't smell like a URL.
- value = 'file://%s' % (
- urllib.pathname2url(
- os.path.abspath(os.path.expanduser(value))),)
- if opt_str == '--download-base' and not value.endswith('/'):
- # Download base needs a trailing slash to make the world happy.
- value += '/'
- else:
- value = None
- name = opt_str[2:].replace('-', '_')
- setattr(parser.values, name, value)
-
-usage = '''\
-[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options]
-
-Bootstraps a buildout-based project.
-
-Simply run this script in a directory containing a buildout.cfg, using the
-Python that you want bin/buildout to use.
-
-Note that by using --setup-source and --download-base to point to
-local resources, you can keep this script from going over the network.
-'''
-
-parser = OptionParser(usage=usage)
-parser.add_option("-v", "--version", dest="version",
- help="use a specific zc.buildout version")
-parser.add_option("-d", "--distribute",
- action="store_true", dest="use_distribute", default=False,
- help="Use Distribute rather than Setuptools.")
-parser.add_option("--setup-source", action="callback", dest="setup_source",
- callback=normalize_to_url, nargs=1, type="string",
- help=("Specify a URL or file location for the setup file. "
- "If you use Setuptools, this will default to " +
- setuptools_source + "; if you use Distribute, this "
- "will default to " + distribute_source + "."))
-parser.add_option("--download-base", action="callback", dest="download_base",
- callback=normalize_to_url, nargs=1, type="string",
- help=("Specify a URL or directory for downloading "
- "zc.buildout and either Setuptools or Distribute. "
- "Defaults to PyPI."))
-parser.add_option("--eggs",
- help=("Specify a directory for storing eggs. Defaults to "
- "a temporary directory that is deleted when the "
- "bootstrap script completes."))
-parser.add_option("-t", "--accept-buildout-test-releases",
- dest='accept_buildout_test_releases',
- action="store_true", default=False,
- help=("Normally, if you do not specify a --version, the "
- "bootstrap script and buildout gets the newest "
- "*final* versions of zc.buildout and its recipes and "
- "extensions for you. If you use this flag, "
- "bootstrap and buildout will get the newest releases "
- "even if they are alphas or betas."))
-parser.add_option("-c", None, action="store", dest="config_file",
- help=("Specify the path to the buildout configuration "
- "file to be used."))
-
-options, orig_args = parser.parse_args()
-
-args = []
-
-# if -c was provided, we push it back into args for buildout's main function
-if options.config_file is not None:
- args += ['-c', options.config_file]
-
-if options.eggs:
- eggs_dir = os.path.abspath(os.path.expanduser(options.eggs))
-else:
- eggs_dir = tempfile.mkdtemp()
-
-if options.setup_source is None:
- if options.use_distribute:
- options.setup_source = distribute_source
- else:
- options.setup_source = setuptools_source
-
-if options.accept_buildout_test_releases:
- args.append('buildout:accept-buildout-test-releases=true')
-
-try:
- import pkg_resources
- import setuptools # A flag. Sometimes pkg_resources is installed alone.
- if not hasattr(pkg_resources, '_distribute'):
- raise ImportError
-except ImportError:
- ez_code = urllib2.urlopen(
- options.setup_source).read().replace('\r\n', '\n')
- ez = {}
- exec ez_code in ez
- setup_args = dict(to_dir=eggs_dir, download_delay=0)
- if options.download_base:
- setup_args['download_base'] = options.download_base
- if options.use_distribute:
- setup_args['no_fake'] = True
- ez['use_setuptools'](**setup_args)
- if 'pkg_resources' in sys.modules:
- reload(sys.modules['pkg_resources'])
- import pkg_resources
- # This does not (always?) update the default working set. We will
- # do it.
- for path in sys.path:
- if path not in pkg_resources.working_set.entries:
- pkg_resources.working_set.add_entry(path)
-
-cmd = [quote(sys.executable),
- '-c',
- quote('from setuptools.command.easy_install import main; main()'),
- '-mqNxd',
- quote(eggs_dir)]
-
-if not has_broken_dash_S:
- cmd.insert(1, '-S')
-
-find_links = options.download_base
-if not find_links:
- find_links = os.environ.get('bootstrap-testing-find-links')
-if find_links:
- cmd.extend(['-f', quote(find_links)])
-
-if options.use_distribute:
- setup_requirement = 'distribute'
-else:
- setup_requirement = 'setuptools'
-ws = pkg_resources.working_set
-setup_requirement_path = ws.find(
- pkg_resources.Requirement.parse(setup_requirement)).location
-env = dict(
- os.environ,
- PYTHONPATH=setup_requirement_path)
-
-requirement = 'zc.buildout'
-version = options.version
-if version is None and not options.accept_buildout_test_releases:
- # Figure out the most recent final version of zc.buildout.
- import setuptools.package_index
- _final_parts = '*final-', '*final'
-
- def _final_version(parsed_version):
- for part in parsed_version:
- if (part[:1] == '*') and (part not in _final_parts):
- return False
- return True
- index = setuptools.package_index.PackageIndex(
- search_path=[setup_requirement_path])
- if find_links:
- index.add_find_links((find_links,))
- req = pkg_resources.Requirement.parse(requirement)
- if index.obtain(req) is not None:
- best = []
- bestv = None
- for dist in index[req.project_name]:
- distv = dist.parsed_version
- if _final_version(distv):
- if bestv is None or distv > bestv:
- best = [dist]
- bestv = distv
- elif distv == bestv:
- best.append(dist)
- if best:
- best.sort()
- version = best[-1].version
-if version:
- requirement = '=='.join((requirement, version))
-cmd.append(requirement)
-
-if is_jython:
- import subprocess
- exitcode = subprocess.Popen(cmd, env=env).wait()
-else: # Windows prefers this, apparently; otherwise we would prefer subprocess
- exitcode = os.spawnle(*([os.P_WAIT, sys.executable] + cmd + [env]))
-if exitcode != 0:
- sys.stdout.flush()
- sys.stderr.flush()
- print ("An error occurred when trying to install zc.buildout. "
- "Look above this message for any errors that "
- "were output by easy_install.")
- sys.exit(exitcode)
-
-ws.add_entry(eggs_dir)
-ws.require(requirement)
-import zc.buildout.buildout
-if orig_args:
- # run buildout with commands passed to bootstrap.py, then actually bootstrap
- zc.buildout.buildout.main(args + orig_args)
-zc.buildout.buildout.main(args + ['bootstrap'])
-if not options.eggs: # clean up temporary egg directory
- shutil.rmtree(eggs_dir)
Deleted: zope.paste/trunk/buildout.cfg
===================================================================
--- zope.paste/trunk/buildout.cfg 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/buildout.cfg 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,11 +0,0 @@
-[buildout]
-parts = server
-develop = .
-find-links = http://download.zope.org/distribution/
-
-[server]
-recipe = zc.recipe.egg
-eggs = zope.paste
- PasteDeploy
- PasteScript
- WSGIUtils
Deleted: zope.paste/trunk/multiple.txt
===================================================================
--- zope.paste/trunk/multiple.txt 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/multiple.txt 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,88 +0,0 @@
-Multiple WSGI applications within Zope 3
-========================================
-
-If you wanted to host *more* than one WSGI application there are a
-couple ways of doing it:
-
-1. Using a *composite application* as described in PasteDeploy_.
-
-2. Setting up extra `IServerType` utilities.
-
-I'm going to show you how to do the latter now.
-
-The trick here is that you have the option to use both the `zserver`
-and the `twisted` WSGI servers. `zope.paste` is just glue code, so we
-defined a `IServerType` utility for each, and the only thing special
-is that the utility name is passed on to the WSGI application factory.
-
-Here's an excerpt from the `configure.zcml` as found on this package::
-
- <configure zcml:condition="have zserver">
- <utility
- name="Paste.Main"
- component="._server.http"
- provides="zope.app.server.servertype.IServerType"
- />
- </configure>
-
- <configure zcml:condition="have twisted">
- <utility
- name="Paste.Main"
- component="._twisted.http"
- provides="zope.app.twisted.interfaces.IServerType"
- />
- </configure>
-
-Depending on which server is available, the right `IServerType`
-utility is registered. You are encouraged to use the same pattern when
-defining yours.
-
-So suppose you want to have a second WSGI application. Here's how you
-could do it.
-
-1. Create a new `IServerType` utility. This excerpt could be added to
- a `configure.zcml` in your own package, or to a standalone file in
- `etc/package_includes`::
-
- <configure zcml:condition="have zserver">
- <utility
- name="Paste.Another"
- component="zope.paste._server.http"
- provides="zope.app.server.servertype.IServerType"
- />
- </configure>
-
- <configure zcml:condition="have twisted">
- <utility
- name="Paste.Another"
- component="zope.paste._twisted.http"
- provides="zope.app.twisted.interfaces.IServerType"
- />
- </configure>
-
-2. Change your `zope.conf` file to define a new server, using the
- newly-created `Paste.Another` utility::
-
- <server>
- type Paste.Main
- address 8080
- </server>
-
- <server>
- type Paste.Another
- address 8180
- </server>
-
-3. Define a WSGI application `Paste.Another` in `paste.ini`::
-
- [pipeline:Paste.Main]
- pipeline = xslt main
-
- [app:main]
- paste.app_factory = zope.paste.application:zope_publisher_app_factory
-
- [filter:xslt]
- paste.filter_factory = xslfilter:filter_factory
-
- [app:Paste.Another]
- paste.app_factory = zope.paste.application:zope_publisher_app_factory
Deleted: zope.paste/trunk/setup.py
===================================================================
--- zope.paste/trunk/setup.py 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/setup.py 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,59 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""zope.paste - wsgi applications in zope 3 using paste.deploy
-"""
-import os
-from setuptools import setup, find_packages
-
-classifiers = """\
-Development Status :: 3 - Alpha
-Environment :: Web Environment
-License :: OSI Approved :: Zope Public License
-Operating System :: OS Independent
-Programming Language :: Python
-Topic :: Internet :: WWW/HTTP
-Topic :: Software Development :: Libraries :: Python Modules
-"""
-
-def read_file(filename):
- return open(os.path.join(os.path.dirname(__file__), filename)).read()
-
-long_description = read_file('README.txt') + '\n\n' + read_file('CHANGES.txt')
-
-setup(name="zope.paste",
- version='0.5.dev0',
- author="Sidnei da Silva",
- author_email="sidnei at enfoldsystems.com",
- description="Zope 3 and PasteDeploy",
- long_description=long_description,
- keywords="web wsgi application server",
- url="http://cheeseshop.python.org/pypi/zope.paste",
- license="Zope Public License",
- platforms=["any"],
- classifiers=filter(None, classifiers.split("\n")),
- namespace_packages=['zope'],
- packages=find_packages(exclude='tests'),
- include_package_data=True,
- zip_safe=False,
- install_requires=['setuptools',
- 'PasteDeploy',
- 'zope.interface',
- 'zope.app.appsetup',
- 'zope.app.wsgi',
- 'zope.app.twisted',
- 'zope.app.server'],
- entry_points = """
- [paste.app_factory]
- main = zope.paste.factory:zope_app_factory
- """)
Deleted: zope.paste/trunk/test-site.zcml
===================================================================
--- zope.paste/trunk/test-site.zcml 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/test-site.zcml 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,55 +0,0 @@
-<configure xmlns="http://namespaces.zope.org/zope">
- <include package="zope.security" file="meta.zcml" />
- <include package="zope.i18n" file="meta.zcml" />
- <include package="zope.app.securitypolicy" file="meta.zcml" />
- <include package="zope.app.zcmlfiles" file="meta.zcml" />
-
- <include package="zope.annotation" />
- <include package="zope.copypastemove" />
- <include package="zope.formlib" />
- <include package="zope.i18n.locales" />
- <include package="zope.publisher" />
- <include package="zope.size" />
- <include package="zope.traversing" />
- <include package="zope.traversing.browser" />
- <include package="zope.publisher" />
- <include package="zope.app.zcmlfiles" />
- <include package="zope.app.securitypolicy" />
- <include package="zope.app.authentication" />
- <include package="zope.app.catalog" />
- <include package="zope.app.intid" />
- <include package="zope.app.keyreference" />
- <include package="zope.app.twisted" />
-
- <securityPolicy
- component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
-
- <unauthenticatedPrincipal id="zope.anybody"
- title="Unauthenticated User" />
- <unauthenticatedGroup id="zope.Anybody"
- title="Unauthenticated Users" />
- <authenticatedGroup id="zope.Authenticated"
- title="Authenticated Users" />
- <everybodyGroup id="zope.Everybody"
- title="All Users" />
- <principal id="zope.manager"
- title="Manager"
- login="admin"
- password_manager="Plain Text"
- password="admin"
- />
-
- <!-- Replace the following directive if you don't want
- public access -->
- <grant permission="zope.View"
- principal="zope.Anybody" />
- <grant permission="zope.app.dublincore.view"
- principal="zope.Anybody" />
-
- <role id="zope.Manager" title="Site Manager" />
- <role id="zope.Member" title="Site Member" />
- <grantAll role="zope.Manager" />
- <grant role="zope.Manager"
- principal="zope.manager" />
-
-</configure>
\ No newline at end of file
Deleted: zope.paste/trunk/test.ini
===================================================================
--- zope.paste/trunk/test.ini 2013-02-25 16:50:32 UTC (rev 129803)
+++ zope.paste/trunk/test.ini 2013-02-25 17:10:54 UTC (rev 129804)
@@ -1,9 +0,0 @@
-[app:main]
-use = egg:zope.paste
-site_definition = test-site.zcml
-file_storage = Data.fs
-
-[server:main]
-use = egg:PasteScript#wsgiutils
-host = 127.0.0.1
-port = 8080
More information about the checkins
mailing list